<?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: MKL DFT with Matlab MEX application:  environment variable  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869375#M8333</link>
    <description>OK, I have more information....the problem is that Matlab now uses MKL, so the need is to set the environment so that the MEX application can also link in MKL without a conflict. Still don't know how to do that though.</description>
    <pubDate>Tue, 24 Jun 2008 13:46:40 GMT</pubDate>
    <dc:creator>mbackues</dc:creator>
    <dc:date>2008-06-24T13:46:40Z</dc:date>
    <item>
      <title>MKL DFT with Matlab MEX application:  environment variable needed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869372#M8330</link>
      <description>Hello. I'm trying to use MKL DFT's in a MEX application. I recall from a few years backthat there's an environment variable that needs to be set, but I don't remember the reasonor exactly what it is, and can't find it online. Without it,Matlab crashes during the FFT plan creation. If someone can remind me what the variable is, I would appreciate it. I am using Matlab 7 and MKL 10.</description>
      <pubDate>Mon, 23 Jun 2008 12:44:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869372#M8330</guid>
      <dc:creator>mbackues</dc:creator>
      <dc:date>2008-06-23T12:44:09Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT with Matlab MEX application:  environment variable</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869373#M8331</link>
      <description>&lt;P&gt;Hi. Was the variable related to memory management or threading? MKL User's Guide is the place where to look for environment variables, particularly section 6.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Dima&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2008 13:00:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869373#M8331</guid>
      <dc:creator>Dmitry_B_Intel</dc:creator>
      <dc:date>2008-06-23T13:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT with Matlab MEX application:  environment variable</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869374#M8332</link>
      <description>Thanks, no, its not one of those threading or memory management environment variables. Its a patch for some kind of incompatibility betweenthe MKL DFT library and MEX libraries. Apparently Matlab isn't high enough on Intel's radar forMEX usebe tested and supported, and vice versa, so its not in the documentation. I don't remember how I found out aboutit before.</description>
      <pubDate>Mon, 23 Jun 2008 13:20:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869374#M8332</guid>
      <dc:creator>mbackues</dc:creator>
      <dc:date>2008-06-23T13:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT with Matlab MEX application:  environment variable</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869375#M8333</link>
      <description>OK, I have more information....the problem is that Matlab now uses MKL, so the need is to set the environment so that the MEX application can also link in MKL without a conflict. Still don't know how to do that though.</description>
      <pubDate>Tue, 24 Jun 2008 13:46:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869375#M8333</guid>
      <dc:creator>mbackues</dc:creator>
      <dc:date>2008-06-24T13:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT with Matlab MEX application:  environment variable</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869376#M8334</link>
      <description>I'm afraid I don't know. Do you remember if it was an MKL or Matlab variable?&lt;BR /&gt;&lt;BR /&gt;Anybody on the forum familiar with this variable for use of MKL with Matlab?&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Jun 2008 21:46:29 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869376#M8334</guid>
      <dc:creator>Todd_R_Intel</dc:creator>
      <dc:date>2008-06-26T21:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT with Matlab MEX application:  environment variable</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869377#M8335</link>
      <description>&lt;P&gt;I suggest you post your question on Mathworks forum,&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.mathworks.com/matlabcentral/newsreader/"&gt;http://www.mathworks.com/matlabcentral/newsreader/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;but first do a search on MKL.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2008 13:18:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869377#M8335</guid>
      <dc:creator>rbarron</dc:creator>
      <dc:date>2008-06-27T13:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: MKL DFT with Matlab MEX application:  environment variable</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869378#M8336</link>
      <description>The problem is probably that Matlab 7 uses MKL 9.x... and if your MEX DLL uses MKL 10.0 you will crash as there are a number of conflicts. When running in  Matlab the ./bin directory ( with the MKL 9.x DLL's) is always first in the PATH.
&lt;BR /&gt;
&lt;BR /&gt;I have battled with this for some time. There are a couple of solutions however. 
&lt;BR /&gt;
&lt;BR /&gt;1) Link MKL statically into your MEX DLL.
&lt;BR /&gt;
&lt;BR /&gt;2) Build a 'custom' MKL DLL following the instructions in the MKL documentation, and link your MEX DLL against that. That way, your MEX DLL can load  the custom MKL DLL and Matlab will load it's MKL DLL's and there is no longer any conflict.
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Jun 2008 15:49:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-DFT-with-Matlab-MEX-application-environment-variable-needed/m-p/869378#M8336</guid>
      <dc:creator>AndrewC</dc:creator>
      <dc:date>2008-06-30T15:49:09Z</dc:date>
    </item>
  </channel>
</rss>

