<?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 you are linking with 64bits in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mex-and-OSX-symbol-not-found-for-libmkl-intel-thread-dylib/m-p/963546#M16045</link>
    <description>&lt;P&gt;you are linking with 64bits mkl's libraries.&amp;nbsp;The symptoms indicates these libraries were not found into systems paths. &amp;nbsp;Please check it first of all.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2014 02:39:07 GMT</pubDate>
    <dc:creator>Gennady_F_Intel</dc:creator>
    <dc:date>2014-01-21T02:39:07Z</dc:date>
    <item>
      <title>mex and OSX, symbol not found for libmkl_intel_thread.dylib library</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mex-and-OSX-symbol-not-found-for-libmkl-intel-thread-dylib/m-p/963545#M16044</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have the following problem. My OS&lt;/P&gt;

&lt;P&gt;I compile a mex file with the following command:&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;/Applications/MATLAB_R2013b.app//bin/mex myfile.cpp mylib.a \&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;CXXFLAGS="\$CXXFLAGS -pthread -fPIC -DNDEBUG -O2 -I/usr/local/include -I/usr/include/python2.7 -I/usr/local/lib/python2.7/dist-packages/numpy/core/include -I/Users/silvia/Tools/leveldb-1.15.0/include -I/opt/intel/mkl/include/intel64/lp64 -I./src -I./include -I/usr/local/cuda/include -I/opt/intel/mkl/include -Wall" \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;CXXLIBS="\$CXXLIBS -L/usr/lib -L/usr/local/lib -L/ -L/Users/silvia/Tools/leveldb-1.15.0/ -L/usr/local/cuda/lib/ -L/usr/local/cuda/lib -L/opt/intel/mkl/lib -L/opt/intel/lib -lcudart -lcublas -lcurand -lprotobuf -lopencv_core -lopencv_highgui -lglog -lmkl_rt -lmkl_intel_thread -liomp5 -lmkl_intel_lp64 -lleveldb -lsnappy -lpthread -lboost_system -lopencv_imgproc" \&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;-o mymexfile&lt;/P&gt;

&lt;P&gt;when I run the mex file in Matlab I got this error:&lt;/P&gt;

&lt;P&gt;Invalid MEX-file '/Users/silvia/mymexfile.mexmaci64':&lt;BR /&gt;
	dlopen(/Users/silvia/mymexfile.mexmaci64, 6): Symbol not found: _mkl_lapack_cdfirstval&lt;BR /&gt;
	&amp;nbsp; Referenced from: /opt/intel/mkl/lib/libmkl_intel_thread.dylib&lt;BR /&gt;
	&amp;nbsp; Expected in: dynamic lookup&lt;/P&gt;

&lt;P&gt;I have set up the following variables, and I run Matlab from a shell&lt;/P&gt;

&lt;P&gt;export LD_LIBRARY_PATH="/usr/local/cuda/lib:/opt/intel/lib:/opt/intel/mkl/lib:$LD_LIBRARY_PATH"&lt;BR /&gt;
	export DYLD_LIBRARY_PATH="/usr/local/cuda/lib:/opt/intel/lib:/opt/intel/mkl/lib:$DYLD_LIBRARY_PATH"&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Silvia&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2014 17:28:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mex-and-OSX-symbol-not-found-for-libmkl-intel-thread-dylib/m-p/963545#M16044</guid>
      <dc:creator>Silvia_Z_</dc:creator>
      <dc:date>2014-01-20T17:28:52Z</dc:date>
    </item>
    <item>
      <title>you are linking with 64bits</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mex-and-OSX-symbol-not-found-for-libmkl-intel-thread-dylib/m-p/963546#M16045</link>
      <description>&lt;P&gt;you are linking with 64bits mkl's libraries.&amp;nbsp;The symptoms indicates these libraries were not found into systems paths. &amp;nbsp;Please check it first of all.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 02:39:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/mex-and-OSX-symbol-not-found-for-libmkl-intel-thread-dylib/m-p/963546#M16045</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2014-01-21T02:39:07Z</dc:date>
    </item>
  </channel>
</rss>

