<?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 Hi Goicox,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-wrappers-in-C-fails-when-LAPACK-is-called/m-p/1085238#M22942</link>
    <description>&lt;P&gt;Hi Goicox,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I try the Test_lapack.exe in the debug folder. It seem work no problem. &amp;nbsp;i run it in command line as below, MKL 11.2.4 intel64.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Microsoft Windows [Version 6.1.7601]&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Copyright (c) 2009 Microsoft Corporation. &amp;nbsp;All rights reserved.&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5&amp;gt;"C:\Program Files (x86)\Intel\Composer XE 2015\mkl\bin\mklvars.bat&lt;BR /&gt;
	"&lt;/P&gt;

&lt;P&gt;Syntax:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;mklvars.bat &amp;lt;arch&amp;gt; [MKL_interface] [mod]&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;arch&amp;gt; must be one of the following&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ia32 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : Setup for IA-32 architecture&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;intel64 &amp;nbsp; &amp;nbsp; &amp;nbsp;: Setup for Intel(R) 64 architecture&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;mod (optional) - set path to MKL F95 modules&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;MKL_interface (optional) - MKL programming interface for intel64&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Not applicable without mod&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lp64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : 4 bytes integer (default)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ilp64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 8 bytes integer&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5&amp;gt;"C:\Program Files (x86)\Intel\Composer XE 2015\mkl\bin\mklvars.bat&lt;BR /&gt;
	" intel64&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5&amp;gt;cd C:\Users\yhu5\Downloads\Test_LAPACK\Test_LAPACK\bin\Debug&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5\Downloads\Test_LAPACK\Test_LAPACK\bin\Debug&amp;gt;Test_LAPACK.exe&lt;BR /&gt;
	MKL LAPACK dgeev example&lt;/P&gt;

&lt;P&gt;Matrix A:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -2 &amp;nbsp; &amp;nbsp; &amp;nbsp;-5 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; -1 &amp;nbsp; &amp;nbsp; &amp;nbsp;-3&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-1 &amp;nbsp; &amp;nbsp; &amp;nbsp;9&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 &amp;nbsp; &amp;nbsp; &amp;nbsp; -1 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 6 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; -2&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-3 &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-2&lt;BR /&gt;
	&lt;STRONG&gt;Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll. &amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;As you see, the mkl_rt.dll will depend on the other MKL dynamic library. &amp;nbsp;So we recommend put all of them together ( or keep same folder). &amp;nbsp; So i remove the mkl_rt.dll in your debug folder. &amp;nbsp;just use the all libraries in MKL folder. &amp;nbsp;it run as below.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;( one more comment, &amp;nbsp;maybe you can use the custom dll builder tool, which can build custom dll based on mkl static library, thus you don't need redistribute mkl dynamic library with your application. )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5\Downloads\Test_LAPACK\Test_LAPACK\bin\Debug&amp;gt;Test_LAPACK.exe&lt;BR /&gt;
	MKL LAPACK dgeev example&lt;/P&gt;

&lt;P&gt;Matrix A:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -2 &amp;nbsp; &amp;nbsp; &amp;nbsp;-5 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; -1 &amp;nbsp; &amp;nbsp; &amp;nbsp;-3&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-1 &amp;nbsp; &amp;nbsp; &amp;nbsp;9&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 &amp;nbsp; &amp;nbsp; &amp;nbsp; -1 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 6 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; -2&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-3 &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-2&lt;BR /&gt;
	Matrix A on exit:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -3.74979687498421 &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.30457083287809 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.272727&lt;BR /&gt;
	272727273&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -10.4969456995383 &amp;nbsp; &amp;nbsp; &amp;nbsp; -3.74979687498421 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.28146648851724 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.68544105675216 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-2.34478199802706&lt;BR /&gt;
	0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.961154157305769 &amp;nbsp; &amp;nbsp; &amp;nbsp; -2.58938020040906 &amp;nbsp; &amp;nbsp; &amp;nbsp; -2.97051040398257&lt;BR /&gt;
	2.05286581472406 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.08511288713447 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.862950290140918 &amp;nbsp; &amp;nbsp; &amp;nbsp;-1.09233902416012&lt;BR /&gt;
	6.28154038161816 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.79150993327142&lt;BR /&gt;
	Wr on exit:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -3.74979687498421 &amp;nbsp; &amp;nbsp; &amp;nbsp; -3.74979687498421 &amp;nbsp; &amp;nbsp; &amp;nbsp; -2.34478199802706&lt;BR /&gt;
	2.05286581472406 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.79150993327142&lt;BR /&gt;
	Wi on exit:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.88964350304832 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-5.88964350304832 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	info on exit: 0&lt;BR /&gt;
	TEST PASSED&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	C:\Users\yhu5\Downloads\Test_LAPACK\Test_LAPACK\bin\Debug&amp;gt;echo %MKLROOT%&lt;BR /&gt;
	C:\Program Files (x86)\Intel\Composer XE 2015\mkl&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5\Downloads\Test_LAPACK\Test_LAPACK\bin\Debug&amp;gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2016 08:37:03 GMT</pubDate>
    <dc:creator>Ying_H_Intel</dc:creator>
    <dc:date>2016-09-22T08:37:03Z</dc:date>
    <item>
      <title>MKL wrappers in C# fails when LAPACK is called</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-wrappers-in-C-fails-when-LAPACK-is-called/m-p/1085237#M22941</link>
      <description>&lt;P&gt;Dear All,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I am trying to create MKL&amp;nbsp;wrapper for accessing LAPACK functions in C# (mainly those related to QR factorization). However, when I call the corresponding LAPACK function, the program just exits without any error message or sometimes gives BadImageFormatException exception.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;I have tried to use the example (intel-mkl-c#-examples_02.zip (11.54 KB)) provided in:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;A href="https://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program/" target="_blank"&gt;https://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;... and the same problem happens when the function below is called:&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;LAPACKNative.dgeev(ref c_jobvl, ref c_jobvr, ref n,&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas, &amp;quot;Lucida Console&amp;quot;, Menlo, Monaco, &amp;quot;DejaVu Sans Mono&amp;quot;, monospace, sans-serif; font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;a, ref lda, wr, wi, vl, ref ldvl, vr, ref ldvr,&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:csharp;"&gt; work1, ref lwork, ref info);&lt;/PRE&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&amp;nbsp;&lt;/P&gt;

&lt;P style="font-size: 13.008px; line-height: 19.512px;"&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Currently, I am using a Win7 64 bits computer and I have tried to use both versions (32 and 64 bits) of the mkl_rt.dll (MKL ver 11.2).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Attached you will find the solution that gives me the error. This uses&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;the source code provided in the cited example. I have also tried with a sample solution provided by &lt;/SPAN&gt;&lt;A about="/en-us/user/1262078" class="username" datatype="" href="https://software.intel.com/en-us/user/1262078" property="foaf:name" style="font-size: 13.008px; line-height: 19.512px;" title="View user profile." typeof="sioc:UserAccount" lang=""&gt;Gianluca G.&lt;/A&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;and fails similarly.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Kindly advise. Thank you in advance, Javier&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2016 13:36:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-wrappers-in-C-fails-when-LAPACK-is-called/m-p/1085237#M22941</guid>
      <dc:creator>Goicochea__Javier</dc:creator>
      <dc:date>2016-09-21T13:36:26Z</dc:date>
    </item>
    <item>
      <title>Hi Goicox, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-wrappers-in-C-fails-when-LAPACK-is-called/m-p/1085238#M22942</link>
      <description>&lt;P&gt;Hi Goicox,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;I try the Test_lapack.exe in the debug folder. It seem work no problem. &amp;nbsp;i run it in command line as below, MKL 11.2.4 intel64.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Microsoft Windows [Version 6.1.7601]&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Copyright (c) 2009 Microsoft Corporation. &amp;nbsp;All rights reserved.&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5&amp;gt;"C:\Program Files (x86)\Intel\Composer XE 2015\mkl\bin\mklvars.bat&lt;BR /&gt;
	"&lt;/P&gt;

&lt;P&gt;Syntax:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;mklvars.bat &amp;lt;arch&amp;gt; [MKL_interface] [mod]&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;arch&amp;gt; must be one of the following&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ia32 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : Setup for IA-32 architecture&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;intel64 &amp;nbsp; &amp;nbsp; &amp;nbsp;: Setup for Intel(R) 64 architecture&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;mod (optional) - set path to MKL F95 modules&lt;/P&gt;

&lt;P&gt;&amp;nbsp; &amp;nbsp;MKL_interface (optional) - MKL programming interface for intel64&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Not applicable without mod&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lp64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : 4 bytes integer (default)&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ilp64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: 8 bytes integer&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5&amp;gt;"C:\Program Files (x86)\Intel\Composer XE 2015\mkl\bin\mklvars.bat&lt;BR /&gt;
	" intel64&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5&amp;gt;cd C:\Users\yhu5\Downloads\Test_LAPACK\Test_LAPACK\bin\Debug&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5\Downloads\Test_LAPACK\Test_LAPACK\bin\Debug&amp;gt;Test_LAPACK.exe&lt;BR /&gt;
	MKL LAPACK dgeev example&lt;/P&gt;

&lt;P&gt;Matrix A:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -2 &amp;nbsp; &amp;nbsp; &amp;nbsp;-5 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; -1 &amp;nbsp; &amp;nbsp; &amp;nbsp;-3&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-1 &amp;nbsp; &amp;nbsp; &amp;nbsp;9&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 &amp;nbsp; &amp;nbsp; &amp;nbsp; -1 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 6 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; -2&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-3 &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-2&lt;BR /&gt;
	&lt;STRONG&gt;Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll. &amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;As you see, the mkl_rt.dll will depend on the other MKL dynamic library. &amp;nbsp;So we recommend put all of them together ( or keep same folder). &amp;nbsp; So i remove the mkl_rt.dll in your debug folder. &amp;nbsp;just use the all libraries in MKL folder. &amp;nbsp;it run as below.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;( one more comment, &amp;nbsp;maybe you can use the custom dll builder tool, which can build custom dll based on mkl static library, thus you don't need redistribute mkl dynamic library with your application. )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5\Downloads\Test_LAPACK\Test_LAPACK\bin\Debug&amp;gt;Test_LAPACK.exe&lt;BR /&gt;
	MKL LAPACK dgeev example&lt;/P&gt;

&lt;P&gt;Matrix A:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -2 &amp;nbsp; &amp;nbsp; &amp;nbsp;-5 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; -1 &amp;nbsp; &amp;nbsp; &amp;nbsp;-3&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-1 &amp;nbsp; &amp;nbsp; &amp;nbsp;9&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 &amp;nbsp; &amp;nbsp; &amp;nbsp; -1 &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 6 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; -2&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-3 &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; -4 &amp;nbsp; &amp;nbsp; &amp;nbsp;-2&lt;BR /&gt;
	Matrix A on exit:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -3.74979687498421 &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.30457083287809 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.272727&lt;BR /&gt;
	272727273&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -10.4969456995383 &amp;nbsp; &amp;nbsp; &amp;nbsp; -3.74979687498421 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.28146648851724 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.68544105675216 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-2.34478199802706&lt;BR /&gt;
	0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.961154157305769 &amp;nbsp; &amp;nbsp; &amp;nbsp; -2.58938020040906 &amp;nbsp; &amp;nbsp; &amp;nbsp; -2.97051040398257&lt;BR /&gt;
	2.05286581472406 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.08511288713447 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-0.862950290140918 &amp;nbsp; &amp;nbsp; &amp;nbsp;-1.09233902416012&lt;BR /&gt;
	6.28154038161816 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.79150993327142&lt;BR /&gt;
	Wr on exit:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -3.74979687498421 &amp;nbsp; &amp;nbsp; &amp;nbsp; -3.74979687498421 &amp;nbsp; &amp;nbsp; &amp;nbsp; -2.34478199802706&lt;BR /&gt;
	2.05286581472406 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.79150993327142&lt;BR /&gt;
	Wi on exit:&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.88964350304832 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-5.88964350304832 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;BR /&gt;
	info on exit: 0&lt;BR /&gt;
	TEST PASSED&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	C:\Users\yhu5\Downloads\Test_LAPACK\Test_LAPACK\bin\Debug&amp;gt;echo %MKLROOT%&lt;BR /&gt;
	C:\Program Files (x86)\Intel\Composer XE 2015\mkl&lt;/P&gt;

&lt;P&gt;C:\Users\yhu5\Downloads\Test_LAPACK\Test_LAPACK\bin\Debug&amp;gt;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 08:37:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-wrappers-in-C-fails-when-LAPACK-is-called/m-p/1085238#M22942</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-09-22T08:37:03Z</dc:date>
    </item>
    <item>
      <title>Dear Ying, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-wrappers-in-C-fails-when-LAPACK-is-called/m-p/1085239#M22943</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Dear Ying,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 13.008px; line-height: 19.512px;"&gt;Thank&lt;/SPAN&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;&amp;nbsp;you very much for your help.&amp;nbsp;I followed your instructions and new the test case is now working. :-)&amp;nbsp;I did not know that the mkl_rt.dll depended on other&amp;nbsp;&lt;/SPAN&gt; dlls&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px; line-height: 18px;"&gt;Regards, Javier&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 13:16:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-wrappers-in-C-fails-when-LAPACK-is-called/m-p/1085239#M22943</guid>
      <dc:creator>Goicochea__Javier</dc:creator>
      <dc:date>2016-09-22T13:16:09Z</dc:date>
    </item>
  </channel>
</rss>

