<?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: Linking a shared to MKL 10 on a 64-bit Linux in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-a-shared-to-MKL-10-on-a-64-bit-Linux/m-p/874906#M8824</link>
    <description>&lt;P&gt;Solved.&lt;BR /&gt;&lt;BR /&gt;I don't know why butGCC used the static version of libiomp5 instead of the dynamic version.&lt;BR /&gt;Now the linking works !&lt;BR /&gt;&lt;BR /&gt;But .... at run time, when I'm loading the shared object that is linked to MKL, the following message appears :&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;MKL FATAL ERROR: libmkl_def.so: cannot open file: No such file or directory&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Any idea ?&lt;/P&gt;
&lt;P&gt;P.S. : The shared object is loaded by a Java application, and as a consequence, is running under the JVM.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2008 11:25:44 GMT</pubDate>
    <dc:creator>ermsgroup</dc:creator>
    <dc:date>2008-06-12T11:25:44Z</dc:date>
    <item>
      <title>Linking a shared to MKL 10 on a 64-bit Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-a-shared-to-MKL-10-on-a-64-bit-Linux/m-p/874905#M8823</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I'm working on a computation application that uses somes functions located in a shared object.&lt;BR /&gt;I need to link this shared object to the MKL in order to uses the BLAS(and CBLAS) functions.&lt;BR /&gt;&lt;BR /&gt;Machine information &lt;BR /&gt;---------------------&lt;BR /&gt;- VM running under VMWare Player for Windows&lt;BR /&gt;- CentOS Linux 3.9 (x86_64)&lt;BR /&gt;- GCC 3.2.3 20030502&lt;/P&gt;
&lt;P&gt;Linking information&lt;BR /&gt;-------------------&lt;BR /&gt;- MKL Librairies (in this order) : libmkl_intel_ilp64.a libmkl_gnu_thread.a libmkl_core.a libiomp5.so&lt;BR /&gt;- Compile Flags : -fPIC&lt;/P&gt;
&lt;P&gt;The error (at link time)&lt;BR /&gt;-----------------------&lt;BR /&gt;&lt;FONT face="Courier New" size="2"&gt;/usr/bin/d: .../lib/libiomp5.a(kmp_csupport.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC&lt;BR /&gt;.../lib/libiomp5.a: could not read symbols: Bad value&lt;BR /&gt;collect2: ld returned 1 exit status&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;What's wrong withlinking ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2008 08:49:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-a-shared-to-MKL-10-on-a-64-bit-Linux/m-p/874905#M8823</guid>
      <dc:creator>ermsgroup</dc:creator>
      <dc:date>2008-06-12T08:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Linking a shared to MKL 10 on a 64-bit Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-a-shared-to-MKL-10-on-a-64-bit-Linux/m-p/874906#M8824</link>
      <description>&lt;P&gt;Solved.&lt;BR /&gt;&lt;BR /&gt;I don't know why butGCC used the static version of libiomp5 instead of the dynamic version.&lt;BR /&gt;Now the linking works !&lt;BR /&gt;&lt;BR /&gt;But .... at run time, when I'm loading the shared object that is linked to MKL, the following message appears :&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;MKL FATAL ERROR: libmkl_def.so: cannot open file: No such file or directory&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Any idea ?&lt;/P&gt;
&lt;P&gt;P.S. : The shared object is loaded by a Java application, and as a consequence, is running under the JVM.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2008 11:25:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-a-shared-to-MKL-10-on-a-64-bit-Linux/m-p/874906#M8824</guid>
      <dc:creator>ermsgroup</dc:creator>
      <dc:date>2008-06-12T11:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Linking a shared to MKL 10 on a 64-bit Linux</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-a-shared-to-MKL-10-on-a-64-bit-Linux/m-p/874907#M8825</link>
      <description>Did you set the path to the MKL /lib/em64t library in LD_LIBRARY_PATH ?&lt;BR /&gt;&lt;BR /&gt;I would have thought you would need all .so libraries, rather than mixing .a and .so; if you did succeed in using .a libraries, I would expect you would run into the circular dependencies which require the libraries to be searched 3 times. Remember, the ilp64 library is the one which requires 64-bit int parameters (C long or long long).&lt;BR /&gt;&lt;BR /&gt;I've never seen such an old version of CentOS; you have an interesting mixture of old and new versions.&lt;BR /&gt;</description>
      <pubDate>Thu, 12 Jun 2008 12:56:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Linking-a-shared-to-MKL-10-on-a-64-bit-Linux/m-p/874907#M8825</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2008-06-12T12:56:51Z</dc:date>
    </item>
  </channel>
</rss>

