<?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: How to let Matlab use Lapack of MKL8? ACML3.1 has successed in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937472#M14221</link>
    <description>The problem seems caused by linking with libguide.lib or libguide40.lib. Can I rename libguide40.lib to libguide.lib?&lt;BR /&gt;&lt;BR /&gt;Should the environment variable KMP_DUPLICATE_LIB_OK be set?&lt;BR /&gt;After,&lt;BR /&gt;SET KMP_DUPLICATE_LIB_OK=TRUE&lt;BR /&gt;&lt;BR /&gt;It seems the problem is resolved.&lt;BR /&gt;Let's roll it! LAPACK of MKL8 is too fast!&lt;BR /&gt;For example:&lt;BR /&gt;For A is a 256X256 complex random matrix, [U,S,V]=svd(A) only spends 0.xx Seconds? Surprising!&lt;BR /&gt;&lt;BR /&gt;But Matlab7 (without MKL LAPACK) need 2 Seconds at least...&lt;BR /&gt;&lt;BR /&gt;MKL8 is so powerful?!</description>
    <pubDate>Mon, 03 Apr 2006 19:49:49 GMT</pubDate>
    <dc:creator>p4top</dc:creator>
    <dc:date>2006-04-03T19:49:49Z</dc:date>
    <item>
      <title>How to let Matlab use Lapack of MKL8? ACML3.1 has successed.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937470#M14219</link>
      <description>Matlab7 can use blas-lib of MKL8, but not use lapack-lib of MKL8!&lt;BR /&gt;&lt;BR /&gt;MKL8 can be used in matlab7, but matlab only use blas-lib, and do not use lapack-lib.&lt;BR /&gt;&lt;BR /&gt;Matlab6.5 can use MKL(both blas and lapack lib), by copying mkl_P4.dll to atlas_P4.dll and copying mkl_lapack64.dll to lapack.dll. A easy way? But it is so great! So fast!&lt;BR /&gt;&lt;BR /&gt;But matlab7 begins to support single precision floating-point data, so we can not copy mkl_lapack64.dll to lapack.dll, because mkl_lapack64.dll lack of cgesvd,....&lt;BR /&gt;Of course, we can not copy mkl_lapack32.dll to lapack.dll, because mkl_lapack32.dll lack of zgesvd,....&lt;BR /&gt;&lt;BR /&gt;How to build a new lapack.dll from MKL which can run correctly?&lt;BR /&gt;I have try it, but always failed.&lt;BR /&gt;&lt;BR /&gt;It often shows:&lt;BR /&gt;Errors: _kmp_openmp_thread... be modified...&lt;BR /&gt;&lt;BR /&gt;Even when I use C-mex to call lapack functions of MKL, these errors often ocurr.&lt;BR /&gt;Please help me.&lt;BR /&gt;Thank you very much!&lt;BR /&gt;&lt;BR /&gt;------------------------------------------------------------&lt;BR /&gt;"I have build new lapack.dll for matlab6.5 from ACML3.1(ICC Version) successfully. But it is unfair for Intel CPU to run at AMCL, so we need the new lapack.dll from MKL8, which can inflate the great floating-point performance of Intel CPU."</description>
      <pubDate>Mon, 03 Apr 2006 16:07:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937470#M14219</guid>
      <dc:creator>p4top</dc:creator>
      <dc:date>2006-04-03T16:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to let Matlab use Lapack of MKL8? ACML3.1 has successed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937471#M14220</link>
      <description>Could you post more to the point? What compiler are you using, what is your link command, and what error messages?&lt;BR /&gt;If you require functions from both libmkl_lapack32.so and libmkl_lapack64.so, then you should specify both in your link command.&lt;BR /&gt;Saying that you have a setup where it is easy to use ACML tells little, except that you probably aren't using ifort, and that could make it difficult to use lapack.</description>
      <pubDate>Mon, 03 Apr 2006 19:49:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937471#M14220</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2006-04-03T19:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to let Matlab use Lapack of MKL8? ACML3.1 has successed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937472#M14221</link>
      <description>The problem seems caused by linking with libguide.lib or libguide40.lib. Can I rename libguide40.lib to libguide.lib?&lt;BR /&gt;&lt;BR /&gt;Should the environment variable KMP_DUPLICATE_LIB_OK be set?&lt;BR /&gt;After,&lt;BR /&gt;SET KMP_DUPLICATE_LIB_OK=TRUE&lt;BR /&gt;&lt;BR /&gt;It seems the problem is resolved.&lt;BR /&gt;Let's roll it! LAPACK of MKL8 is too fast!&lt;BR /&gt;For example:&lt;BR /&gt;For A is a 256X256 complex random matrix, [U,S,V]=svd(A) only spends 0.xx Seconds? Surprising!&lt;BR /&gt;&lt;BR /&gt;But Matlab7 (without MKL LAPACK) need 2 Seconds at least...&lt;BR /&gt;&lt;BR /&gt;MKL8 is so powerful?!</description>
      <pubDate>Mon, 03 Apr 2006 19:49:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937472#M14221</guid>
      <dc:creator>p4top</dc:creator>
      <dc:date>2006-04-03T19:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to let Matlab use Lapack of MKL8? ACML3.1 has successed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937473#M14222</link>
      <description>Thank you.&lt;BR /&gt;It is for matlab(win32).&lt;BR /&gt;&lt;BR /&gt;For building the lapack.dll, I do not use the compiler, but just use the masm8's lib.exe/link.exe...&lt;BR /&gt;&lt;BR /&gt;First step, I extract the dbdsdc.obj/.../zupmtr.obj from MKL_LAPACK.LIB(lapack static lib) by lib.exe.&lt;BR /&gt;&lt;BR /&gt;Second step, I build these .obj into lapack.dll by link.exe.&lt;BR /&gt;&lt;BR /&gt;I can build the lapack.dll successfully, but it can't run correctly.&lt;BR /&gt;&lt;BR /&gt;But the problem seems resolved, after SET KMP_DUPLICATE_LIB_OK=TRUE.&lt;BR /&gt;&lt;BR /&gt;(I compile C-mex codes under matlab with ICC9.0 or MS C-Compiler8.0)</description>
      <pubDate>Mon, 03 Apr 2006 20:04:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937473#M14222</guid>
      <dc:creator>p4top</dc:creator>
      <dc:date>2006-04-03T20:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to let Matlab use Lapack of MKL8? ACML3.1 has successed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937474#M14223</link>
      <description>Now, we have get a prefect patch (for Intel) of Matlab -- both Intel's blas and lapack lib.&lt;BR /&gt;Too fast...&lt;BR /&gt;atlas_P4.dll(MKL8 Version)--from mkl_p4.dll and lapack.dll(MKL8 Version) from mkl_lapack.lib</description>
      <pubDate>Mon, 03 Apr 2006 20:24:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937474#M14223</guid>
      <dc:creator>p4top</dc:creator>
      <dc:date>2006-04-03T20:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to let Matlab use Lapack of MKL8? ACML3.1 has successed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937475#M14224</link>
      <description>Only for Matlab6.5, not for Matlab7! This demo patch do not support the 32-bit floating-point.&lt;BR /&gt;If you have mkl8, matlab6.5 and this demo patch, you can enable the MKL LAPACK LIB by:&lt;BR /&gt;0. Close matlab&lt;BR /&gt;1. find and goto ..MATLAB&amp;#8;inwin32 directory.&lt;BR /&gt;2. Bak the lapack.dll for recovery, then replace it with this patch file.&lt;BR /&gt;3. You have to copy all relative dll files into ..MATLAB&amp;#8;inwin32 directory. (such as all mkl*.dll, libguide40.dll, ect on...)&lt;BR /&gt;4. SET KMP_DUPLICATE_LIB_OK=TRUE&lt;BR /&gt;5. Reopen matlab.</description>
      <pubDate>Mon, 03 Apr 2006 22:03:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937475#M14224</guid>
      <dc:creator>p4top</dc:creator>
      <dc:date>2006-04-03T22:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to let Matlab use Lapack of MKL8? ACML3.1 has successed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937476#M14225</link>
      <description>This patch support some 32-bit floating-point functions, but some miss maybe exist.&lt;BR /&gt;Matlab7 maybe can use this patch.</description>
      <pubDate>Tue, 04 Apr 2006 08:56:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937476#M14225</guid>
      <dc:creator>p4top</dc:creator>
      <dc:date>2006-04-04T08:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to let Matlab use Lapack of MKL8? ACML3.1 has successed</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937477#M14226</link>
      <description>Copy below DLL files of MKL into ..matlab&amp;#8;inwin32 directory.&lt;BR /&gt;libguide40.dll&lt;BR /&gt;mkl_def.dll&lt;BR /&gt;mkl_ias.dll&lt;BR /&gt;mkl_lapack32.dll&lt;BR /&gt;mkl_lapack64.dll&lt;BR /&gt;mkl_p3.dll&lt;BR /&gt;mkl_p4.dll&lt;BR /&gt;mkl_p4p.dll&lt;BR /&gt;&lt;BR /&gt;Find and open matlab.bat in ..matlab&amp;#8;in directory.&lt;BR /&gt;Edit matlab.bat, add SET KMP_DUPLICATE_LIB_OK=TRUE into the first line of matlab.bat.&lt;BR /&gt;For example:&lt;BR /&gt;matlab.bat&lt;BR /&gt;SET KMP_DUPLICATE_LIB_OK=TRUE&lt;BR /&gt;@echo off&lt;BR /&gt;................</description>
      <pubDate>Tue, 04 Apr 2006 13:42:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/How-to-let-Matlab-use-Lapack-of-MKL8-ACML3-1-has-successed/m-p/937477#M14226</guid>
      <dc:creator>p4top</dc:creator>
      <dc:date>2006-04-04T13:42:56Z</dc:date>
    </item>
  </channel>
</rss>

