<?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 linking mkl under linux with fortran 95 blas interface in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-mkl-under-linux-with-fortran-95-blas-interface/m-p/909407#M12011</link>
    <description>&lt;P&gt;Thanks a lot, I found the solution by examining the makefile given in examples subdirectory.&lt;/P&gt;
&lt;P&gt;The proper line should look as follows:&lt;/P&gt;
&lt;P&gt;export LD_LIBRARY_PATH="/opt/intel/Compiler/11.1/064/mkl/lib/32":"/opt/intel/Compiler/11.1/064/lib/ia32:/opt/intel/Compiler/11.1/064/mkl/lib/32:/opt/intel/mkl/10.2.3.029/lib/32":"/usr/lib"; ifort -xK  -I /opt/intel/Compiler/11.1/064/mkl/include/32 -w mkl_test.f90 /opt/intel/Compiler/11.1/064/mkl/lib/32/libmkl_blas95.a "/opt/intel/Compiler/11.1/064/mkl/lib/32"/libmkl_intel.a -Wl,--start-group "/opt/intel/Compiler/11.1/064/mkl/lib/32"/libmkl_intel_thread.a "/opt/intel/Compiler/11.1/064/mkl/lib/32"/libmkl_core.a -Wl,--end-group -L"/opt/intel/Compiler/11.1/064/mkl/lib/32" -liomp5 -lpthread&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2010 18:23:03 GMT</pubDate>
    <dc:creator>beeboom</dc:creator>
    <dc:date>2010-01-25T18:23:03Z</dc:date>
    <item>
      <title>linking mkl under linux with fortran 95 blas interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-mkl-under-linux-with-fortran-95-blas-interface/m-p/909405#M12009</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am trying to compile test fortran program using blas with fortran 95 interface.&lt;/P&gt;
&lt;P&gt;$ cat mkl_test.f90 &lt;BR /&gt;program dot_main&lt;BR /&gt;use mkl95_blas&lt;BR /&gt;use mkl95_precision&lt;BR /&gt;real x(10), y(10), res&lt;BR /&gt;integer i&lt;BR /&gt;do i = 1, 10&lt;BR /&gt;x(i) = 2.0e0&lt;BR /&gt;y(i) = 1.0e0&lt;BR /&gt;end do&lt;BR /&gt;res = dot(x,y)&lt;BR /&gt;print*, 'SDOT = ', res&lt;BR /&gt;end&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;However, I do not succeed and this is the error message I get:&lt;/P&gt;
&lt;P&gt;$ ifort mkl_test.f90 -I$FPATH -L$LIBRARY_PATH -L$LD_LIBRARY_PATH -Wl,--start-group /opt/intel/mkl/10.2.3.029/lib/32/libmkl_blas95.a /opt/intel/mkl/10.2.3.029/lib/32/libmkl_intel_thread.a /opt/intel/mkl/10.2.3.029/lib/32/libmkl_core.a -Wl,--end-group -lguide -lpthread&lt;BR /&gt;/opt/intel/mkl/10.2.3.029/lib/32/libmkl_blas95.a(sdot.o): In function `sdot_f95_':&lt;BR /&gt;../../../../interfaces/blas95/source/sdot.f90:(.text+0x141): undefined reference to `sdot_'&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;There is similiar thread at this forum where the problem was solved by specifying -lmkl option at compiling. But according to &lt;A href="http://software.intel.com/en-us/articles/performance-tools-for-software-developers-for-easily-migrating-from-mkl-9x-to-10x/" target="_blank"&gt;http://software.intel.com/en-us/articles/performance-tools-for-software-developers-for-easily-migrating-from-mkl-9x-to-10x/&lt;/A&gt; and &lt;A href="http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-linking-applications-with-intel-mkl-version-100/" target="_blank"&gt;http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-linux-linking-applications-with-intel-mkl-version-100/&lt;/A&gt; since 10th version of mkl libmkl.so was replaced by other libraries. Does somebody know what are the proper options to build this code now?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2010 22:50:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-mkl-under-linux-with-fortran-95-blas-interface/m-p/909405#M12009</guid>
      <dc:creator>beeboom</dc:creator>
      <dc:date>2010-01-22T22:50:55Z</dc:date>
    </item>
    <item>
      <title>linking mkl under linux with fortran 95 blas interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-mkl-under-linux-with-fortran-95-blas-interface/m-p/909406#M12010</link>
      <description>&lt;P&gt;You have...&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the Fortran 95 interface: libmkl_blas95.a&lt;/LI&gt;
&lt;LI&gt;the threading layer: libmkl_intel_thread.a&lt;/LI&gt;
&lt;LI&gt;and the core functionality: libmkl_core.a&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;But I don't see the interface layer: libmkl_intel.a&lt;/P&gt;
&lt;P&gt;-Todd&lt;/P&gt;
&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/intel-mkl-link-line-advisor/"&gt;Link Line Advisor.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2010 00:51:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-mkl-under-linux-with-fortran-95-blas-interface/m-p/909406#M12010</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2010-01-23T00:51:36Z</dc:date>
    </item>
    <item>
      <title>linking mkl under linux with fortran 95 blas interface</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-mkl-under-linux-with-fortran-95-blas-interface/m-p/909407#M12011</link>
      <description>&lt;P&gt;Thanks a lot, I found the solution by examining the makefile given in examples subdirectory.&lt;/P&gt;
&lt;P&gt;The proper line should look as follows:&lt;/P&gt;
&lt;P&gt;export LD_LIBRARY_PATH="/opt/intel/Compiler/11.1/064/mkl/lib/32":"/opt/intel/Compiler/11.1/064/lib/ia32:/opt/intel/Compiler/11.1/064/mkl/lib/32:/opt/intel/mkl/10.2.3.029/lib/32":"/usr/lib"; ifort -xK  -I /opt/intel/Compiler/11.1/064/mkl/include/32 -w mkl_test.f90 /opt/intel/Compiler/11.1/064/mkl/lib/32/libmkl_blas95.a "/opt/intel/Compiler/11.1/064/mkl/lib/32"/libmkl_intel.a -Wl,--start-group "/opt/intel/Compiler/11.1/064/mkl/lib/32"/libmkl_intel_thread.a "/opt/intel/Compiler/11.1/064/mkl/lib/32"/libmkl_core.a -Wl,--end-group -L"/opt/intel/Compiler/11.1/064/mkl/lib/32" -liomp5 -lpthread&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2010 18:23:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/linking-mkl-under-linux-with-fortran-95-blas-interface/m-p/909407#M12011</guid>
      <dc:creator>beeboom</dc:creator>
      <dc:date>2010-01-25T18:23:03Z</dc:date>
    </item>
  </channel>
</rss>

