<?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 Re: Basic linking problem LAPACK95 in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Basic-linking-problem-LAPACK95/m-p/885413#M10005</link>
    <description>I based the following on the makefile output when compiling the example file for the gels routine.  It seems to work; there is probably some extra stuff in there.&lt;BR /&gt;&lt;BR /&gt;ifort -xK -O3 -static -I /opt/intel/Compiler/11.1/046/mkl/include/32 -w myprog.f90 /opt/intel/Compiler/11.1/046/mkl/lib/32/libmkl_lapack95.a "/opt/intel/Compiler/11.1/046/mkl/lib/32"/libmkl_intel.a -Wl,--start-group "/opt/intel/Compiler/11.1/046/mkl/lib/32"/libmkl_intel_thread.a  "/opt/intel/Compiler/11.1/046/mkl/lib/32"/libmkl_core.a -Wl,--end-group -L"/opt/intel/Compiler/11.1/046/mkl/lib/32" -openmp -liomp5 -lpthread  -o myprog.out&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Sat, 29 Aug 2009 02:00:09 GMT</pubDate>
    <dc:creator>sarah_a</dc:creator>
    <dc:date>2009-08-29T02:00:09Z</dc:date>
    <item>
      <title>Basic linking problem LAPACK95</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Basic-linking-problem-LAPACK95/m-p/885412#M10004</link>
      <description>Using MKL on Linux for IA-32:&lt;BR /&gt;I need myprog.f90 to be statically linked; it makes a call to the LAPACK subroutine gels() using the LAPACK95 interface.&lt;BR /&gt;&lt;BR /&gt;I have spent a lot of time looking at documentation, examples and similar questions on this forum; but after much experimentation I still can't get this to compile. So I appologize but I must go ahead and ask again.&lt;BR /&gt;&lt;BR /&gt;My best attempt based on Intel's Link Advisor:&lt;BR /&gt;ifort -L/opt/intel/mkl/10.2.1.017/lib/32 -lmkl_blas95 -lmkl_lapack95 -lmkl_intel -lmkl_core -lmkl_sequential -lpthread -static myprog.f90&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;/tmp/ifortJnhkQs.o: In function `MAIN__':&lt;BR /&gt;myprog.f90:(.text+0x375): undefined reference to `sgels1_mkl95_'&lt;BR /&gt;&lt;BR /&gt;I have built the interface *.mod and *.a files for LAPACK95.&lt;BR /&gt;&lt;BR /&gt;Do I have the wrong compiler command?&lt;BR /&gt;I can compile from the MKL LAPACK95 included examples (using the makefile) so I guess the problem is not some environmental variable. I don't know enough to extract the technique from the example makefile.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Aug 2009 06:44:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Basic-linking-problem-LAPACK95/m-p/885412#M10004</guid>
      <dc:creator>sarah_a</dc:creator>
      <dc:date>2009-08-27T06:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Basic linking problem LAPACK95</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Basic-linking-problem-LAPACK95/m-p/885413#M10005</link>
      <description>I based the following on the makefile output when compiling the example file for the gels routine.  It seems to work; there is probably some extra stuff in there.&lt;BR /&gt;&lt;BR /&gt;ifort -xK -O3 -static -I /opt/intel/Compiler/11.1/046/mkl/include/32 -w myprog.f90 /opt/intel/Compiler/11.1/046/mkl/lib/32/libmkl_lapack95.a "/opt/intel/Compiler/11.1/046/mkl/lib/32"/libmkl_intel.a -Wl,--start-group "/opt/intel/Compiler/11.1/046/mkl/lib/32"/libmkl_intel_thread.a  "/opt/intel/Compiler/11.1/046/mkl/lib/32"/libmkl_core.a -Wl,--end-group -L"/opt/intel/Compiler/11.1/046/mkl/lib/32" -openmp -liomp5 -lpthread  -o myprog.out&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 29 Aug 2009 02:00:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Basic-linking-problem-LAPACK95/m-p/885413#M10005</guid>
      <dc:creator>sarah_a</dc:creator>
      <dc:date>2009-08-29T02:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Basic linking problem LAPACK95</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Basic-linking-problem-LAPACK95/m-p/885414#M10006</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/440607"&gt;sarah_a&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;I based the following on the makefile output when compiling the example file for the gels routine.  It seems to work; there is probably some extra stuff in there.&lt;BR /&gt;&lt;BR /&gt;ifort -xK -O3 -static -I /opt/intel/Compiler/11.1/046/mkl/include/32 -w myprog.f90 /opt/intel/Compiler/11.1/046/mkl/lib/32/libmkl_lapack95.a "/opt/intel/Compiler/11.1/046/mkl/lib/32"/libmkl_intel.a -Wl,--start-group "/opt/intel/Compiler/11.1/046/mkl/lib/32"/libmkl_intel_thread.a  "/opt/intel/Compiler/11.1/046/mkl/lib/32"/libmkl_core.a -Wl,--end-group -L"/opt/intel/Compiler/11.1/046/mkl/lib/32" -openmp -liomp5 -lpthread  -o myprog.out&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
-xK isn't documented for any recent compiler version. It's supposed to be equivalent to -mia32 for 11.x, after being unreliable for 10.x. So it would prevent any SSE optimization in myprog.f90.&lt;BR /&gt;Yes, there is duplication; the -L path should already be set by the ifortvars script, and -liomp5 -lpthread are already include in -openmp.&lt;BR /&gt;</description>
      <pubDate>Sat, 29 Aug 2009 03:59:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Basic-linking-problem-LAPACK95/m-p/885414#M10006</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2009-08-29T03:59:40Z</dc:date>
    </item>
  </channel>
</rss>

