<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using Intel MKL with PETSc in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912238#M12244</link>
    <description>&lt;PRE&gt;I tried to configure petsc-3.0.0-p7 with mkl 10.2.3.029 for core 2 computer&lt;BR /&gt;(Fedora 11) &lt;BR /&gt;./config/configure.py PETSC_ARCH=linux-intel --with-debugging=0 --with-cc=gcc&lt;BR /&gt;--with-fc=gfortran COPTFLAGS='-O3 -march=p4 -mtune=p4' FOPTFLAGS='-O3 -qarch=p4&lt;BR /&gt;-qtune=p4' --download-mpich=1&lt;BR /&gt;--with-blas-lapack-dir=/opt/intel/mkl/10.2.3.029/lib/em64t &lt;BR /&gt; &lt;BR /&gt;As a result I had message : &lt;BR /&gt;UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details): &lt;BR /&gt;-----------------------------------------------------------------&lt;BR /&gt;---------------------- &lt;BR /&gt;You set a value for --with-blas-lapack-dir=&lt;DIR&gt;, but&lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t cannot be used &lt;BR /&gt; &lt;BR /&gt;I found a lot of errors in log file. As example below some part of it: &lt;BR /&gt; &lt;BR /&gt;Possible ERROR while running linker: /usr/bin/ld: cannot find -lmkl_lapack &lt;BR /&gt;............................ &lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t/libmkl_lapack.so: undefined reference to&lt;BR /&gt;`mkl_pds_sp_blkslv_pardiso' &lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t/libmkl_lapack.so: undefined reference to&lt;BR /&gt;`mkl_lapack_zgetrf' &lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t/libmkl_lapack.so: undefined reference to&lt;BR /&gt;`mkl_serv_xerbla' &lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t/libmkl_def.so: undefined reference to&lt;BR /&gt;`mkl_pdepl_d_inv_ft_dd_nd' &lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t/libmkl_lapack.so: undefined reference to&lt;BR /&gt;`mkl_lapack_cunmqr' &lt;BR /&gt;&lt;BR /&gt;These libmkl_lapack.so and libmkl_def.so libraries exist in this directory.&lt;BR /&gt; &lt;BR /&gt;How I could check why it happen? Is it because of new versions of Petsc and MKL&lt;BR /&gt;or I just wrong installed MKL? &lt;BR /&gt;With standard BLAS Petsc works, so problem seems in MKL.&lt;BR /&gt;&lt;BR /&gt;Could I find more detailed discription how to connect Petsc to MKL than&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/mkl-blas-lapack-with-petsc/" target="_blank"&gt;http://software.intel.com/en-us/articles/mkl-blas-lapack-with-petsc/&lt;/A&gt; ? &lt;BR /&gt;   &lt;BR /&gt;	&lt;BR /&gt;&lt;BR /&gt;&lt;/DIR&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jan 2010 18:22:17 GMT</pubDate>
    <dc:creator>ngolubev</dc:creator>
    <dc:date>2010-01-14T18:22:17Z</dc:date>
    <item>
      <title>Using Intel MKL with PETSc</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912238#M12244</link>
      <description>&lt;PRE&gt;I tried to configure petsc-3.0.0-p7 with mkl 10.2.3.029 for core 2 computer&lt;BR /&gt;(Fedora 11) &lt;BR /&gt;./config/configure.py PETSC_ARCH=linux-intel --with-debugging=0 --with-cc=gcc&lt;BR /&gt;--with-fc=gfortran COPTFLAGS='-O3 -march=p4 -mtune=p4' FOPTFLAGS='-O3 -qarch=p4&lt;BR /&gt;-qtune=p4' --download-mpich=1&lt;BR /&gt;--with-blas-lapack-dir=/opt/intel/mkl/10.2.3.029/lib/em64t &lt;BR /&gt; &lt;BR /&gt;As a result I had message : &lt;BR /&gt;UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details): &lt;BR /&gt;-----------------------------------------------------------------&lt;BR /&gt;---------------------- &lt;BR /&gt;You set a value for --with-blas-lapack-dir=&lt;DIR&gt;, but&lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t cannot be used &lt;BR /&gt; &lt;BR /&gt;I found a lot of errors in log file. As example below some part of it: &lt;BR /&gt; &lt;BR /&gt;Possible ERROR while running linker: /usr/bin/ld: cannot find -lmkl_lapack &lt;BR /&gt;............................ &lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t/libmkl_lapack.so: undefined reference to&lt;BR /&gt;`mkl_pds_sp_blkslv_pardiso' &lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t/libmkl_lapack.so: undefined reference to&lt;BR /&gt;`mkl_lapack_zgetrf' &lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t/libmkl_lapack.so: undefined reference to&lt;BR /&gt;`mkl_serv_xerbla' &lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t/libmkl_def.so: undefined reference to&lt;BR /&gt;`mkl_pdepl_d_inv_ft_dd_nd' &lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/em64t/libmkl_lapack.so: undefined reference to&lt;BR /&gt;`mkl_lapack_cunmqr' &lt;BR /&gt;&lt;BR /&gt;These libmkl_lapack.so and libmkl_def.so libraries exist in this directory.&lt;BR /&gt; &lt;BR /&gt;How I could check why it happen? Is it because of new versions of Petsc and MKL&lt;BR /&gt;or I just wrong installed MKL? &lt;BR /&gt;With standard BLAS Petsc works, so problem seems in MKL.&lt;BR /&gt;&lt;BR /&gt;Could I find more detailed discription how to connect Petsc to MKL than&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/mkl-blas-lapack-with-petsc/" target="_blank"&gt;http://software.intel.com/en-us/articles/mkl-blas-lapack-with-petsc/&lt;/A&gt; ? &lt;BR /&gt;   &lt;BR /&gt;	&lt;BR /&gt;&lt;BR /&gt;&lt;/DIR&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jan 2010 18:22:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912238#M12244</guid>
      <dc:creator>ngolubev</dc:creator>
      <dc:date>2010-01-14T18:22:17Z</dc:date>
    </item>
    <item>
      <title>Using Intel MKL with PETSc</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912239#M12245</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I tried to build petsc-3.0.0-p10 with MKL 10.2.3.029 on intel 64-bits dual core machine. I used the next commands for building:&lt;/P&gt;
&lt;P&gt;$ PETSC_DIR=$PWD&lt;/P&gt;
&lt;P&gt;$ export PETSC_DIR&lt;/P&gt;
&lt;P&gt;$ ./configure --with-blas-lapack-dir=/opt/intel/mkl/10.2.3.029/lib/em64t&lt;/P&gt;
&lt;P&gt;$ make all&lt;/P&gt;
&lt;P&gt;$ make test&lt;/P&gt;
&lt;P&gt;I doesn't obtain any issues during compilation. All tests ran successfully.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Art&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2010 08:15:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912239#M12245</guid>
      <dc:creator>Artem_V_Intel</dc:creator>
      <dc:date>2010-01-15T08:15:20Z</dc:date>
    </item>
    <item>
      <title>Using Intel MKL with PETSc</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912240#M12246</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;The document&lt;/P&gt;
&lt;PRE&gt;&lt;A href=" http://software.intel.com/en-us/articles/mkl-blas-lapack-with-petsc/"&gt;&lt;BR /&gt;http://software.intel.com/en-us/articles/mkl-blas-lapack-with-petsc/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;refers specifically to MKL 10.1.  I suspect you may be running into the change in 10.2, &lt;BR /&gt;if the lapack.so you have no longer is a script containing references to certain choices of other&lt;BR /&gt;libraries such as the lp64, core, and thread libraries.  It may require an expert on petsc and MKL &lt;BR /&gt;to update the procedure so as to take care of the dependencies.&lt;BR /&gt;&lt;BR /&gt;I just completed a project where I had to give up on shared Intel libraries and use not only the static &lt;BR /&gt;library setup as prescribed in the MKL link advisor, but add static libraries from the Intel compiler&lt;BR /&gt;library directory.  The icpc -static-intel link command took care only of the libraries which directly&lt;BR /&gt;satisfy dependencies of the C++ source files, not those brought in indirectly by MKL or by Fortran&lt;BR /&gt;source files.  A reason given for not giving a fully automatic procedure for static link is that&lt;BR /&gt;someone will make mistakes with OpenMP support when generating .so files.&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Jan 2010 14:05:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912240#M12246</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2010-01-15T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Using Intel MKL with PETSc</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912241#M12247</link>
      <description>&lt;P&gt;Thanks Artem,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I reduced number of parameters and now configured PETSC with MKL.&lt;/P&gt;
&lt;P&gt;Unfortunatelly I have new problem now. If I compare results for typical model (Poisson equation, 220*220*220 cells, pretty sparse matrix, KSPBCGS) I don't see any improvements. So I need advise of experienced people. Could MKL improve perfomance of solution of sparse matrix? Did anybody get this improvement for PETSC?&lt;/P&gt;
&lt;P&gt;For full matrix using of processor optimized libraries (like Atlas) provides several time faster code compare to fortran compiled.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;New code uses&lt;/P&gt;
&lt;P&gt;/opt/intel/mkl/10.2.3.029/lib/em64t -L/opt/intel/mkl/10.2.3.029/lib/em64t -lflapack -lfblas -lnsl -lrt -lm&lt;/P&gt;
&lt;P&gt;-L/opt/intel/mkl/10.2.3.029/lib/em64t -ldl -lmpich -lpthread -lrt -lgcc_s -lmpichf90 -lgfortranbegin -lgfortran -lm&lt;/P&gt;
&lt;P&gt;compare to standard&lt;/P&gt;
&lt;P&gt;-L/home/Nik/soft/petsc-3.0.0-p7/linux-gnu-c-debug/lib -lflapack -lfblas -lnsl -lrt -lm&lt;/P&gt;
&lt;P&gt;-L/lib64 -ldl -lmpich -lpthread -lrt -lgcc_s -lmpichf90 -lgfortranbegin -lgfortran -lm&lt;/P&gt;
&lt;P&gt;Any advises how to improve performance appreciated.&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jan 2010 19:05:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912241#M12247</guid>
      <dc:creator>ngolubev</dc:creator>
      <dc:date>2010-01-15T19:05:28Z</dc:date>
    </item>
    <item>
      <title>Using Intel MKL with PETSc</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912242#M12248</link>
      <description>&lt;DIV style="margin-left: 2px; margin-right: 2px;"&gt;Quoting &lt;A rel="/en-us/services/profile/quick_profile.php?is_paid=&amp;amp;user_id=460573" class="basic" href="https://community.intel.com/en-us/profile/460573/"&gt;ngolubev&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="border: 1px inset; padding: 5px; background-color: #e5e5e5; margin-left: 2px; margin-right: 2px;"&gt;Unfortunatelly I have new problem now. If I compare results for typical model (Poisson equation, 220*220*220 cells, pretty sparse matrix, KSPBCGS) I don't see any improvements. So I need advise of experienced people. Could MKL improve perfomance of solution of sparse matrix? Did anybody get this improvement for PETSC?&lt;/DIV&gt;
&lt;DIV style="border: 1px inset; padding: 5px; background-color: #e5e5e5; margin-left: 2px; margin-right: 2px;"&gt;For full matrix using of processor optimized libraries (like Atlas) provides several time faster code compare to fortran compiled.&lt;I&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/I&gt;&lt;/DIV&gt;
&lt;P&gt;I have a bad news. I got responce from PETSc developers. They don't expect improvements from using MKL for my problem.&lt;/P&gt;
&lt;P&gt;Anyway, any information on using MKL with PETSc appreciated.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2010 18:43:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Using-Intel-MKL-with-PETSc/m-p/912242#M12248</guid>
      <dc:creator>ngolubev</dc:creator>
      <dc:date>2010-01-19T18:43:06Z</dc:date>
    </item>
  </channel>
</rss>

