<?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 runtime error when Matlab mex file calling MKL in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880446#M9465</link>
    <description>&lt;P&gt;I have changed the linking line as you said, but it gave me the same runtime error.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[s2] = quad_mkl(x1, x2, lx2, w, lam, a, u, sigsq, d, t)&lt;/P&gt;
&lt;P&gt;??? Invalid MEX-file '/home/tom/intel/mkl/10.2.4.032/lib/em64t/quad_mkl.mexa64':&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;libmkl_intel_lp64.so&lt;/STRONG&gt;: cannot open shared object file: No such file or directory.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2010 18:31:19 GMT</pubDate>
    <dc:creator>Kai_S_</dc:creator>
    <dc:date>2010-03-03T18:31:19Z</dc:date>
    <item>
      <title>runtime error when Matlab mex file calling MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880442#M9461</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I am working on an AMD64 machine running Linux, Matlab 2008b and MKL 10.2.4.&lt;/P&gt;
&lt;P&gt;I wrote a piece of cpp code calling MKL functions. I have compiled it successfully in Matlab using gnu C compiler.My compile script looks like this.&lt;/P&gt;
&lt;P&gt;mex -v -I"/home/tom/intel/mkl/10.2.4.032/include" quad_mkl.cpp -L"/home/tom/intel/mkl/10.2.4.032/lib/em64t" -lmkl_solver_ilp64 -lmkl_intel_ilp64 -lmkl_gnu_thread -lmkl_core&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;But I got runtime error like the following.&lt;/P&gt;
&lt;P&gt;[s2] = quad_mkl(x1, x2, lx2, w, lam, a, u, sigsq, d, t)&lt;BR /&gt;??? Invalid MEX-file '/home/tom/intel/mkl/10.2.4.032/lib/em64t/quad_mkl.mexa64':&lt;BR /&gt;libmkl_intel_ilp64.so: cannot open shared object file: No such file or directory.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;This happens even when I run it in the same folder with libmkl_intel_ilp64.so. Can anybody here give me some help? Thanks!&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2010 04:15:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880442#M9461</guid>
      <dc:creator>Kai_S_</dc:creator>
      <dc:date>2010-03-02T04:15:46Z</dc:date>
    </item>
    <item>
      <title>runtime error when Matlab mex file calling MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880443#M9462</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;As you use ilp64 libraries, you should use -DMKL_ILP64 command line option. See user guide:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Compiling for ILP64: icc -DMKL_ILP64 -I/include &lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Of course, you may define MKL_ILP64 in your C/C++ code.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Vladimir&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2010 07:02:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880443#M9462</guid>
      <dc:creator>Vladimir_Koldakov__I</dc:creator>
      <dc:date>2010-03-02T07:02:09Z</dc:date>
    </item>
    <item>
      <title>runtime error when Matlab mex file calling MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880444#M9463</link>
      <description>Actually, I am not sure if I shall use LP64 or ILP64. I am using it in Matlab mex. All I know is that my Matlab is 64-bit version. Which one shall I use?</description>
      <pubDate>Tue, 02 Mar 2010 14:40:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880444#M9463</guid>
      <dc:creator>Kai_S_</dc:creator>
      <dc:date>2010-03-02T14:40:06Z</dc:date>
    </item>
    <item>
      <title>runtime error when Matlab mex file calling MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880445#M9464</link>
      <description>&lt;P&gt;well, please try to replace-lmkl_intel_ilp64 by the-lmkl_intel_lp64&lt;/P&gt;
&lt;P&gt;and your linking line will looks like:&lt;/P&gt;
&lt;P&gt;mex -v -I"/home/tom/intel/mkl/10.2.4.032/include" quad_mkl.cpp -L"/home/tom/intel/mkl/10.2.4.032/lib/em64t" &lt;B&gt;-lmkl_intel_lp64&lt;/B&gt; -lmkl_gnu_thread -lmkl_core&lt;/P&gt;
&lt;P&gt;and try again..&lt;/P&gt;</description>
      <pubDate>Tue, 02 Mar 2010 14:52:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880445#M9464</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-03-02T14:52:55Z</dc:date>
    </item>
    <item>
      <title>runtime error when Matlab mex file calling MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880446#M9465</link>
      <description>&lt;P&gt;I have changed the linking line as you said, but it gave me the same runtime error.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;[s2] = quad_mkl(x1, x2, lx2, w, lam, a, u, sigsq, d, t)&lt;/P&gt;
&lt;P&gt;??? Invalid MEX-file '/home/tom/intel/mkl/10.2.4.032/lib/em64t/quad_mkl.mexa64':&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;libmkl_intel_lp64.so&lt;/STRONG&gt;: cannot open shared object file: No such file or directory.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2010 18:31:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/runtime-error-when-Matlab-mex-file-calling-MKL/m-p/880446#M9465</guid>
      <dc:creator>Kai_S_</dc:creator>
      <dc:date>2010-03-03T18:31:19Z</dc:date>
    </item>
  </channel>
</rss>

