<?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 Matlab crashes when using both built-in MKL library, and MEX fi in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816887#M4347</link>
    <description>Henrik,&lt;BR /&gt;&lt;BR /&gt;could you try to build your mex file with libiomp5mt/libiomp5md instead of libguide/libguide40?&lt;BR /&gt;&lt;BR /&gt;Andrey</description>
    <pubDate>Tue, 28 Sep 2010 08:14:43 GMT</pubDate>
    <dc:creator>Andrey_G_Intel2</dc:creator>
    <dc:date>2010-09-28T08:14:43Z</dc:date>
    <item>
      <title>Matlab crashes when using both built-in MKL library, and MEX file invoking MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816884#M4344</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I'm trying to implement the band-matrix LU decomposition algorithm from the MKL in a matlab executeable file (MEX). Here I have trouble using the parallel libraries from the intel MKL, which causes my matlab version to crash. &lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Version Info:&lt;/B&gt;&lt;BR /&gt;Matlab r2010b - 64bit&lt;BR /&gt;Windows 7 64-bit&lt;BR /&gt;Compiler: MSVC++ express 2008&lt;BR /&gt;MKL Version using in MEX linking: 10.2.6.037&lt;BR /&gt;MKL Version used by Matlab: 10.0.3 (From what I could find in the help)&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;How to cause error&lt;/B&gt;&lt;BR /&gt;The error comes up if I use my .mex file in conjunction with the intermal matlab function 'lu'. This is done to test my implementation. If I use either by itself, nothing odd happens.&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;Current Documentation&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;In the &lt;A title="Using MKL in Matlab" href="http://software.intel.com/en-us/articles/intel-math-kernel-library-intel-mkl-for-windows-using-intel-mkl-in-matlab-executable-mex-files/"&gt;Intel help &lt;/A&gt;for using MKL in Matlab, it is stated that it will crash if I use different versions in the MKL from what is used in Matlab. When I try to link to the libguide40.lib file though, my Matlab still crashes. The crash also happens so fast, that I can't see what the output window states. Is it possible to make it pause, or output to a text file?&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;(Solution)&lt;/B&gt;&lt;BR /&gt;My only current solution is to build to the sequential libraries. Is it possible to either update the matlab MKL library, or somehow make my build work in parallel regardless?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Henrik Andresen</description>
      <pubDate>Mon, 27 Sep 2010 09:16:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816884#M4344</guid>
      <dc:creator>hareson</dc:creator>
      <dc:date>2010-09-27T09:16:54Z</dc:date>
    </item>
    <item>
      <title>Matlab crashes when using both built-in MKL library, and MEX fi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816885#M4345</link>
      <description>&lt;DIV&gt;Henrik,&lt;DIV&gt;&lt;DIV&gt;You don't have use libguide as was disscussed in&lt;A href="http://software.intel.com/en-us/forums/showthread.php?t=77549&amp;amp;o=d&amp;amp;s=lr"&gt;this thread&lt;/A&gt;.&lt;/DIV&gt;&lt;DIV&gt;Intel MKL does not provide opportunities to make a pause and then to run again.&lt;/DIV&gt;&lt;DIV&gt;I am not aware but it may help if you just replace the aged 10.0.3 Intel MKL's dll by the newest from version 10.2.6.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;--Gennady</description>
      <pubDate>Tue, 28 Sep 2010 06:35:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816885#M4345</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2010-09-28T06:35:38Z</dc:date>
    </item>
    <item>
      <title>Matlab crashes when using both built-in MKL library, and MEX fi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816886#M4346</link>
      <description>Hi Gennady&lt;BR /&gt;&lt;BR /&gt;I might just be missing the point, but I can't see any discussion of the libguide library in the thread you are linking to. Can you elaborate on this?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I omit the libguide and use the 'mkl_intel_thread.lib' instead of 'mkl_sequential.lib', I get a lot of unresolved like:&lt;BR /&gt;&lt;BR /&gt;mkl_intel_thread.lib(sgemv_omp.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num &lt;BR /&gt;mkl_intel_thread.lib(sgemm_drv.obj) : error LNK2019: unresolved external symbol __kmpc_global_thread_num referenced in function mkl_blas_sgemm &lt;BR /&gt;mkl_intel_thread.lib(strsm_drv.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num &lt;BR /&gt;mkl_intel_thread.lib(scopy_omp.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num &lt;BR /&gt;mkl_intel_thread.lib(cgemv_omp.obj) : error LNK2001: unresolved external symbol __kmpc_global_thread_num &lt;BR /&gt;&lt;BR /&gt;Which I assume is linked to the threading model.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Henrik&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Sep 2010 07:19:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816886#M4346</guid>
      <dc:creator>hareson</dc:creator>
      <dc:date>2010-09-28T07:19:21Z</dc:date>
    </item>
    <item>
      <title>Matlab crashes when using both built-in MKL library, and MEX fi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816887#M4347</link>
      <description>Henrik,&lt;BR /&gt;&lt;BR /&gt;could you try to build your mex file with libiomp5mt/libiomp5md instead of libguide/libguide40?&lt;BR /&gt;&lt;BR /&gt;Andrey</description>
      <pubDate>Tue, 28 Sep 2010 08:14:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816887#M4347</guid>
      <dc:creator>Andrey_G_Intel2</dc:creator>
      <dc:date>2010-09-28T08:14:43Z</dc:date>
    </item>
    <item>
      <title>Matlab crashes when using both built-in MKL library, and MEX fi</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816888#M4348</link>
      <description>Hey Andrey&lt;BR /&gt;&lt;BR /&gt;The libiomp5md version works perfectly. The 'mt' version crashes though.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Henrik</description>
      <pubDate>Tue, 28 Sep 2010 10:46:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Matlab-crashes-when-using-both-built-in-MKL-library-and-MEX-file/m-p/816888#M4348</guid>
      <dc:creator>hareson</dc:creator>
      <dc:date>2010-09-28T10:46:50Z</dc:date>
    </item>
  </channel>
</rss>

