<?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: Problem Linking in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Linking/m-p/989039#M17919</link>
    <description>&lt;DIV&gt;You're very close now. You need to add the path ofdynamic libraries (libmkl_lapack64.so in this case) to the LD_LIBRARY_PATH environment variable so that the loader can find them at runtime. The following should work:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/mkl721/lib/32&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;The mklvars32.sh script is provided in the tools/environment directory of MKL. You could just source this script.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;-Todd&lt;/DIV&gt;</description>
    <pubDate>Sat, 11 Jun 2005 06:58:23 GMT</pubDate>
    <dc:creator>Todd_R_Intel</dc:creator>
    <dc:date>2005-06-11T06:58:23Z</dc:date>
    <item>
      <title>Problem Linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Linking/m-p/989036#M17916</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am having problems using Lapack on a Dell Linux machine (redhat) with a Xeon chip. I installed mkl and try to compile with ifc using;&lt;BR /&gt;&lt;BR /&gt;ifc -pc80  -cm   -w -o test test.f -L/opt/intel/mkl721/lib/64 -lmkl_lapack64 -lmkl_def -lguide -lpthread  -O3 -r8 -tpp7&lt;BR /&gt;&lt;BR /&gt;and the error message is &lt;BR /&gt;&lt;BR /&gt;/opt/intel/mkl721/lib/64/libmkl_lapack64.so: file not recognized: File format not recognized&lt;BR /&gt;&lt;BR /&gt;There are no complaints at compilation that subroutines/functions can't be found.&lt;BR /&gt;&lt;BR /&gt;If I use lapack32 then the routines I need cannot be found. I've tried various permutations of "32" and "64" in the above and nothing works.&lt;BR /&gt;&lt;BR /&gt;Any suggestions would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;David&lt;P&gt;Message Edited by davidfarrelly on &lt;SPAN class="date_text"&gt;06-10-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:20 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Message Edited by davidfarrelly on &lt;SPAN class="date_text"&gt;06-10-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;02:38 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2005 04:19:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Linking/m-p/989036#M17916</guid>
      <dc:creator>davidfarrelly</dc:creator>
      <dc:date>2005-06-11T04:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Linking/m-p/989037#M17917</link>
      <description>That's an Itanium library.  If you are using a 32-bit compiler, you need those in /lib/32/.  If you are running an x86-64 linux, with 64-bit compilers, you need the em64t libraries.  You should have 3 directories under mkl721/lib, to cover the 3 varieties.  The only use for the /64 directory is where you have an Itanium system where mkl won't install, and you need to copy it over there.</description>
      <pubDate>Sat, 11 Jun 2005 05:21:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Linking/m-p/989037#M17917</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2005-06-11T05:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Linking/m-p/989038#M17918</link>
      <description>EDITED: Problem solved using;&lt;BR /&gt;&lt;BR /&gt;ifc -i_dynamic -pc80  -cm   -w -o test test.f -L/opt/intel/mkl721/lib/32 -lmkl_lapack -lmkl_ia32 -lguide -lpthread  -O3 -r8 -tpp7&lt;BR /&gt;&lt;BR /&gt;Again, thanks for the help!&lt;BR /&gt;&lt;BR /&gt;Pre-edited message below (will leave since might be useful for reference)&lt;BR /&gt;&lt;BR /&gt;*********************************************************************&lt;BR /&gt;&lt;BR /&gt;Tim,&lt;BR /&gt;&lt;BR /&gt;Thanks - I still have some problems;&lt;BR /&gt;&lt;BR /&gt;If I do this:&lt;BR /&gt;&lt;BR /&gt;ifc -i_dynamic -pc80  -cm   -w -o test test.f -L/opt/intel/mkl721/lib/32 -lmkl_lapack32 -lmkl_def -lguide -lpthread  -O3 -r8 -tpp7&lt;BR /&gt;&lt;BR /&gt;the error message on compilation is:&lt;BR /&gt;&lt;BR /&gt;11057 Lines Compiled&lt;BR /&gt;/tmp/ifcwhTfKM.o(.text+0x3bc6): In function `syminv_':&lt;BR /&gt;: undefined reference to `dsytrf_'&lt;BR /&gt;/tmp/ifcwhTfKM.o(.text+0x3c46): In function `syminv_':&lt;BR /&gt;: undefined reference to `dsytri_'&lt;BR /&gt;/tmp/ifcwhTfKM.o(.text+0x11794): In function `f02aaf_':&lt;BR /&gt;: undefined reference to `dsyevx_'&lt;BR /&gt;/tmp/ifcwhTfKM.o(.text+0x11a1a): In function `f02abf_':&lt;BR /&gt;: undefined reference to `dsyevx_'&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;whereas if I use the lapack64 in /32 i.e.,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ifc -i_dynamic -pc80  -cm   -w -o test test.f -L/opt/intel/mkl721/lib/32 -lmkl_lapack64 -lmkl_def -lguide -lpthread  -O3 -r8 -tpp7&lt;BR /&gt;&lt;BR /&gt;it compiles ok, but when I try to run it I get this;&lt;BR /&gt;&lt;BR /&gt;./bnd_linnh3: error while loading shared libraries: libmkl_lapack64.so: cannot open shared object file: No such file or directory.&lt;BR /&gt;&lt;BR /&gt;I'm migrating from 64 bit DEC alphas so sorry to be so naive about how to do all this!&lt;BR /&gt;&lt;BR /&gt;David&lt;P&gt;Message Edited by davidfarrelly on &lt;SPAN class="date_text"&gt;06-10-2005&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;04:56 PM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2005 06:18:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Linking/m-p/989038#M17918</guid>
      <dc:creator>davidfarrelly</dc:creator>
      <dc:date>2005-06-11T06:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem Linking</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Linking/m-p/989039#M17919</link>
      <description>&lt;DIV&gt;You're very close now. You need to add the path ofdynamic libraries (libmkl_lapack64.so in this case) to the LD_LIBRARY_PATH environment variable so that the loader can find them at runtime. The following should work:&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt; export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/mkl721/lib/32&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;The mklvars32.sh script is provided in the tools/environment directory of MKL. You could just source this script.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;-Todd&lt;/DIV&gt;</description>
      <pubDate>Sat, 11 Jun 2005 06:58:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Problem-Linking/m-p/989039#M17919</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2005-06-11T06:58:23Z</dc:date>
    </item>
  </channel>
</rss>

