<?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 Could you share the name of in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144140#M26571</link>
    <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Could you share the name of the MKL installer? Did you download it from Intel website?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Please let me confirm the timeline.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;1. Matlab worked well without errors.&lt;/P&gt;

&lt;P&gt;2. Downloaded &amp;amp;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;Installed MKL.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Q1: Was Matlab running or closed when installing MKL?&lt;/P&gt;

&lt;P&gt;Q2: Did you run Matlab and MKL installer in the same terminal? Or use different terminals (Like run Matlab in a terminal, and then start a new terminal and run MKL installer)?&lt;/P&gt;

&lt;P&gt;Q3: Did MKL installer finish normally?&lt;/P&gt;

&lt;P&gt;3. Matlab crashed with &lt;SPAN style="font-size: 12px;"&gt;Intel MKL FATAL ERROR: cannot load libmkl_avx.so&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Is this correct?&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2017 01:10:00 GMT</pubDate>
    <dc:creator>Jing_Xu</dc:creator>
    <dc:date>2017-11-01T01:10:00Z</dc:date>
    <item>
      <title>matlab no longer working after installing mkl</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144131#M26562</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;I installed mkl_2018 on a linux Debian 8.0 64bits where I already had matlab installed. Before installing mkl, matlab worked fine.&lt;/P&gt;

&lt;P&gt;Since I installed mkl, matlab starts but crashes with following error when I do a signal convolution:&lt;/P&gt;

&lt;P&gt;Intel MKL FATAL ERROR: cannot load libmkl_avx.so&lt;/P&gt;

&lt;P&gt;So I added&amp;nbsp;&lt;/P&gt;

&lt;P&gt;export LD_PRELOAD=/opt/intel/mkl/lib/intel64/libmkl_avx.so to my .bashrc and sourced it, and now I can no longer launch matlab : I get following error message:&lt;/P&gt;

&lt;P&gt;symbol lookup error: /opt/intel/mkl/lib/intel64/libmkl_avx.so: undefined symbol: mkl_parse_optimize_bsr_trsm_i8&lt;/P&gt;

&lt;P&gt;Any idea ?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 21:34:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144131#M26562</guid>
      <dc:creator>agks</dc:creator>
      <dc:date>2017-10-18T21:34:02Z</dc:date>
    </item>
    <item>
      <title>Are you using Matlab with</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144132#M26563</link>
      <description>&lt;P&gt;Are you using Matlab with seperately installed MKL? Or use the default setting of Matlab?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 07:53:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144132#M26563</guid>
      <dc:creator>Jing_Xu</dc:creator>
      <dc:date>2017-10-19T07:53:46Z</dc:date>
    </item>
    <item>
      <title>How do I know which MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144133#M26564</link>
      <description>&lt;P&gt;How do I know which MKL Matlab is using ? I did not change any Matlab setting so I assume it is default setting.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2017 12:23:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144133#M26564</guid>
      <dc:creator>agks</dc:creator>
      <dc:date>2017-10-20T12:23:24Z</dc:date>
    </item>
    <item>
      <title>&gt;&gt; How do I know which MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144134#M26565</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;&amp;gt;&amp;gt; How do I know which MKL Matlab is using ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 12px;"&gt;&amp;lt;&amp;lt;&amp;nbsp;&lt;/SPAN&gt;version -blas&amp;nbsp; or version -lapack&lt;/P&gt;

&lt;P&gt;FYI:&amp;nbsp; &amp;nbsp;&lt;SPAN style="font-size: 1em;"&gt;the latest Matlab R2017b uses MKL 11.3.1&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-left:1.0in;"&gt;&amp;gt;&amp;gt; version -date&lt;/P&gt;

&lt;P style="margin-left:1.0in;"&gt;ans =&amp;nbsp;&amp;nbsp; 'September 14, 2017'&lt;/P&gt;

&lt;P style="margin-left:1.0in;"&gt;&amp;gt;&amp;gt; version -blas&amp;nbsp;&lt;/P&gt;

&lt;P style="margin-left:1.0in;"&gt;&lt;SPAN style="font-size: 1em;"&gt;ans =&amp;nbsp;&amp;nbsp; 'Intel(R) Math Kernel Library Version 11.3.1 Product Build 20151021 for Intel(R) 64 architecture applications, CNR branch AVX2&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Oct 2017 03:37:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144134#M26565</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2017-10-21T03:37:02Z</dc:date>
    </item>
    <item>
      <title>Could you share us a sample</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144135#M26566</link>
      <description>&lt;P&gt;Could you share us a sample code that we can use to reproduce the error?&lt;/P&gt;

&lt;P&gt;Alternatively, you may try "source mklvars.sh intel64/ia32" rather than set LD_PRELOAD before starting Matlab.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Oct 2017 23:17:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144135#M26566</guid>
      <dc:creator>Jing_Xu</dc:creator>
      <dc:date>2017-10-22T23:17:00Z</dc:date>
    </item>
    <item>
      <title>I tested on my Ubuntu 16.04</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144136#M26567</link>
      <description>&lt;P&gt;I tested on my Ubuntu 16.04 with Matlab 2016b with &amp;amp; without MKL 2018 installed.&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt; version&lt;BR /&gt;
	ans =&lt;BR /&gt;
	9.1.0.441655 (R2016b)&lt;BR /&gt;
	&amp;gt;&amp;gt; version -date&lt;BR /&gt;
	ans =&lt;BR /&gt;
	September 7, 2016&lt;BR /&gt;
	&amp;gt;&amp;gt; version -blas&lt;BR /&gt;
	ans =&lt;BR /&gt;
	Intel(R) Math Kernel Library Version 11.3.1 Product Build 20151021 for Intel(R) 64 architecture applications, CNR branch AVX2&lt;BR /&gt;
	&amp;gt;&amp;gt; version -lapack&lt;BR /&gt;
	ans =&lt;BR /&gt;
	Intel(R) Math Kernel Library Version 11.3.1 Product Build 20151021 for Intel(R) 64 architecture applications, CNR branch AVX2&lt;BR /&gt;
	Linear Algebra PACKage Version 3.5.0&lt;/P&gt;

&lt;P&gt;The default MKL lib that Matlab calls is MKL 11.3.1.&lt;/P&gt;

&lt;P&gt;Also, I followed&amp;nbsp;https://www.mathworks.com/help/matlab/matlab_external/calling-lapack-and-blas-functions-from-mex-files.html to try to call BLAS and LAPACK functions using Matlab samples.&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt; copyfile(fullfile(matlabroot,'extern','examples','refbook','matrixMultiply.c'),'.')&lt;BR /&gt;
	&amp;gt;&amp;gt; fileattrib('matrixMultiply.c','+w')&lt;BR /&gt;
	&amp;gt;&amp;gt; mex -v matrixMultiply.c -lmwblas&lt;BR /&gt;
	&amp;gt;&amp;gt; A = [1 3 5; 2 4 7];&lt;BR /&gt;
	&amp;gt;&amp;gt; B = [-5 8 11; 3 9 21; 4 0 8];&lt;BR /&gt;
	&amp;gt;&amp;gt; X = matrixMultiply(A,B)&lt;BR /&gt;
	X =&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; 24&amp;nbsp; &amp;nbsp; 35&amp;nbsp; &amp;nbsp;114&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; 30&amp;nbsp; &amp;nbsp; 52&amp;nbsp; &amp;nbsp;162&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt; copyfile(fullfile(matlabroot,'extern','examples','refbook','matrixDivide.c'),'.')&lt;BR /&gt;
	&amp;gt;&amp;gt; mex -v matrixDivide.c -lmwlapack&lt;BR /&gt;
	&amp;gt;&amp;gt; A = [1 2; 3 4];&lt;BR /&gt;
	&amp;gt;&amp;gt; B = [5; 6];&lt;BR /&gt;
	&amp;gt;&amp;gt; X = matrixDivide(A,B)&lt;BR /&gt;
	X =&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp;-4.0000&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; 4.5000&lt;/P&gt;

&lt;P&gt;Could you follow these steps to check whether it works or not? Also, could you please check your Matlab version? Or please share your steps and matlab commands so that we can reproduce the error.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 07:25:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144136#M26567</guid>
      <dc:creator>Jing_Xu</dc:creator>
      <dc:date>2017-10-24T07:25:14Z</dc:date>
    </item>
    <item>
      <title>Hi Jing</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144137#M26568</link>
      <description>&lt;P&gt;Hi Jing&lt;/P&gt;

&lt;P&gt;I modified the LD_PRELOAD as follows in my .bashrc&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;export LD_PRELOAD=/opt/intel/mkl/lib/intel64/libmkl_core.so:/opt/intel/mkl/lib/intel64/libmkl_avx.so:/opt/intel/mkl/lib/intel64/libmkl_def.so:/opt/intel/mkl/lib/intel64/libmkl_gf_ilp64.so:/opt/intel/mkl/lib/intel64/libmkl_gf_lp64.so:/opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so:/opt/intel/mkl/lib/intel64/libmkl_intel_ilp64.so&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;and now it works. I do not know what was the original MKL version my matalb was using and I cannot get it since I cannot launch but now I get:&lt;/P&gt;

&lt;P&gt;&amp;gt;&amp;gt; version -blas&lt;/P&gt;

&lt;P&gt;ans =&lt;/P&gt;

&lt;P&gt;Intel(R) Math Kernel Library Version 2018.0.0 Product Build 20170720 for Intel(R) 64 architecture applications&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;gt;&amp;gt; version -lapack&lt;/P&gt;

&lt;P&gt;ans =&lt;/P&gt;

&lt;P&gt;Intel(R) Math Kernel Library Version 2018.0.0 Product Build 20170720 for Intel(R) 64 architecture applications&lt;BR /&gt;
	Linear Algebra PACKage Version 3.7.0&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Running your mex example also works fine&lt;/P&gt;

&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Agks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 08:44:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144137#M26568</guid>
      <dc:creator>agks</dc:creator>
      <dc:date>2017-10-24T08:44:04Z</dc:date>
    </item>
    <item>
      <title>Hi Agks,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144138#M26569</link>
      <description>&lt;P&gt;Hi Agks,&lt;BR /&gt;
	Thanks for sharing for these useful info. We are having some further investigation, so we could understand why the problem happen there, and try to improve it for the future product release.&lt;/P&gt;

&lt;P&gt;We need your help to provide some more information:&amp;nbsp; basically,&amp;nbsp;we could not reproduce your problem at this moment, as Jing suggested before, we installed Matlab 2016b, and we also installed the latest MKL 2018 release. Both for them works well in a few our tests.&lt;/P&gt;

&lt;P&gt;I also expect the MKL installation should not impact the Matlab at the system:&amp;nbsp;Matlab includes some MKL BLAS and LAPACK functions in its installation, but all of functions were built into a new library ( mkl.so).&amp;nbsp; Intel MKL 2018 is installed into a different directory with different library names. So we do expect it will not bring the conflict there. The program does not need to set the LD_PRELOAD environment as well.&lt;/P&gt;

&lt;P&gt;For your specific problem, could you help to provide some more info, which could help us to investigate this problem faster?&lt;BR /&gt;
	1)The matlab version you are using? &amp;nbsp;&amp;nbsp;&amp;nbsp;Also can you find the “mkl.so” file at the&amp;nbsp; MATLAB\version\bin\ARCH folder.&lt;/P&gt;

&lt;P&gt;2)Do you set any environment to enforce the matlab to use your local MKL libraries ( for example mkl_rt.so). &amp;nbsp;&amp;nbsp;&amp;nbsp;Actually, Matlab provide some environment variable (&lt;A href="https://www.mathworks.com/matlabcentral/fileexchange/48863-update-matlab-s-mkl"&gt;BLAS_VERSION/ LAPACK_VERSION&lt;/A&gt;), which can change the Matlab MKL libraries.&lt;/P&gt;

&lt;P&gt;If you are doing this, it needs to be careful here when you have a new version of MKL, you need to correctly set the path environment to new version of MKL.&lt;/P&gt;

&lt;P&gt;3)&amp;nbsp;Does your code directly program with MKL APIs, and linking with MKL?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
	Chao&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 12:50:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144138#M26569</guid>
      <dc:creator>Chao_Y_Intel</dc:creator>
      <dc:date>2017-10-25T12:50:05Z</dc:date>
    </item>
    <item>
      <title>Hi Chao</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144139#M26570</link>
      <description>&lt;P&gt;Hi Chao&lt;/P&gt;

&lt;P&gt;My answers below&lt;/P&gt;

&lt;P&gt;1) R2014a&lt;/P&gt;

&lt;P&gt;2) No&lt;/P&gt;

&lt;P&gt;3)&amp;nbsp; No, just Matlab script&lt;/P&gt;

&lt;P&gt;I remember I did not restart my computer after installing the MKL lib. Now I removed the LD_PRELOAD variable and Matlab works fine and is using the default MKL lib. Which leads me to the conclusion that I may have needed to restart the computer.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;agks&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2017 10:35:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144139#M26570</guid>
      <dc:creator>agks</dc:creator>
      <dc:date>2017-10-31T10:35:24Z</dc:date>
    </item>
    <item>
      <title>Could you share the name of</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144140#M26571</link>
      <description>&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Could you share the name of the MKL installer? Did you download it from Intel website?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Please let me confirm the timeline.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;1. Matlab worked well without errors.&lt;/P&gt;

&lt;P&gt;2. Downloaded &amp;amp;&lt;SPAN style="font-size: 1em;"&gt;&amp;nbsp;Installed MKL.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Q1: Was Matlab running or closed when installing MKL?&lt;/P&gt;

&lt;P&gt;Q2: Did you run Matlab and MKL installer in the same terminal? Or use different terminals (Like run Matlab in a terminal, and then start a new terminal and run MKL installer)?&lt;/P&gt;

&lt;P&gt;Q3: Did MKL installer finish normally?&lt;/P&gt;

&lt;P&gt;3. Matlab crashed with &lt;SPAN style="font-size: 12px;"&gt;Intel MKL FATAL ERROR: cannot load libmkl_avx.so&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Is this correct?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 01:10:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/matlab-no-longer-working-after-installing-mkl/m-p/1144140#M26571</guid>
      <dc:creator>Jing_Xu</dc:creator>
      <dc:date>2017-11-01T01:10:00Z</dc:date>
    </item>
  </channel>
</rss>

