<?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 symlink MKL blas library for use by R in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/symlink-MKL-blas-library-for-use-by-R/m-p/1181557#M29357</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can anyone please help me understand which .dylib to symlink for use by R on mac osx?&lt;/P&gt;

&lt;P&gt;As an example I have used the following commands to try and link:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&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;"&gt;cd /Library/Frameworks/R.framework/Resources/lib&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;ln -sf /opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/libmkl_intel.dylib libRblas.dylib&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I have tried symlinking various libraries, but still now joy. The error I when trying to run benchmark tests in R is:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt;dyld: Symbol not found: _MKL_Detect_Cpu_Global_Lock
  Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.dylib
  Expected in: flat namespace
 in /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.dylib
Command terminated abnormally.
        0.01 real         0.00 user         0.00 sys&lt;/PRE&gt;

&lt;P&gt;I am using:&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt;macOS 10.13.5
R version 3.5.1 (2018-07-02) \ Platform: x86_64-apple-darwin15.6.0 (64-bit)
RStudio Version 1.1.456
&lt;/PRE&gt;

&lt;P&gt;Please let me know if you need any further info. Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Atanas.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Sep 2018 12:36:25 GMT</pubDate>
    <dc:creator>janackovski__atanas</dc:creator>
    <dc:date>2018-09-06T12:36:25Z</dc:date>
    <item>
      <title>symlink MKL blas library for use by R</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/symlink-MKL-blas-library-for-use-by-R/m-p/1181557#M29357</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Can anyone please help me understand which .dylib to symlink for use by R on mac osx?&lt;/P&gt;

&lt;P&gt;As an example I have used the following commands to try and link:&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&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;"&gt;cd /Library/Frameworks/R.framework/Resources/lib&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:bash; class-name:dark;"&gt;ln -sf /opt/intel/compilers_and_libraries_2018.3.185/mac/mkl/lib/libmkl_intel.dylib libRblas.dylib&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;I have tried symlinking various libraries, but still now joy. The error I when trying to run benchmark tests in R is:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt;dyld: Symbol not found: _MKL_Detect_Cpu_Global_Lock
  Referenced from: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.dylib
  Expected in: flat namespace
 in /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libRblas.dylib
Command terminated abnormally.
        0.01 real         0.00 user         0.00 sys&lt;/PRE&gt;

&lt;P&gt;I am using:&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:; class-name:dark;"&gt;macOS 10.13.5
R version 3.5.1 (2018-07-02) \ Platform: x86_64-apple-darwin15.6.0 (64-bit)
RStudio Version 1.1.456
&lt;/PRE&gt;

&lt;P&gt;Please let me know if you need any further info. Any help would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Atanas.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 12:36:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/symlink-MKL-blas-library-for-use-by-R/m-p/1181557#M29357</guid>
      <dc:creator>janackovski__atanas</dc:creator>
      <dc:date>2018-09-06T12:36:25Z</dc:date>
    </item>
    <item>
      <title>Hi Atanas, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/symlink-MKL-blas-library-for-use-by-R/m-p/1181558#M29358</link>
      <description>&lt;P&gt;Hi Atanas,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Please refer to :&amp;nbsp; &lt;A href="https://software.intel.com/en-us/articles/quick-linking-intel-mkl-blas-lapack-to-r" target="_blank"&gt;https://software.intel.com/en-us/articles/quick-linking-intel-mkl-blas-lapack-to-r&lt;/A&gt;&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em;"&gt;Ying&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;and&amp;nbsp;&lt;SPAN style="font-size: 13.008px;"&gt;if you run into issue, please pay attention&amp;nbsp; and DYLD_LIBRARY_PATH:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P style="margin-right: auto; margin-bottom: 20px; margin-left: auto; box-sizing: border-box; word-wrap: break-word; max-width: 700px; color: rgb(83, 86, 90); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 15px;"&gt;R uses GNU OpenMP multithread library libgomp.so, and Intel MKL uses Intel OpenMP multithread library, from Intel MKL 11.1.3 onwards, we provided the flexibility of supporting GNU threading layer by setting certain environment variables as explained in the MKL reference manual section here&amp;nbsp;&lt;A href="https://software.intel.com/en-us/node/528522/" style="color: rgb(0, 113, 197); box-sizing: border-box; outline: none;"&gt;https://software.intel.com/en-us/node/528522/&lt;/A&gt;)&lt;/P&gt;

&lt;P style="margin-right: auto; margin-bottom: 20px; margin-left: auto; box-sizing: border-box; word-wrap: break-word; max-width: 700px; color: rgb(83, 86, 90); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 15px;"&gt;Please set the MKL interface and threading layer to GNU and LP64 as&lt;/P&gt;

&lt;BLOCKQUOTE style="font-style: normal; margin-right: auto; margin-bottom: 20px; margin-left: auto; box-sizing: border-box; max-width: 700px; color: rgb(83, 86, 90); font-family: &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 15px;"&gt;
	&lt;P style="margin-right: auto; margin-bottom: 20px; margin-left: auto; box-sizing: border-box; word-wrap: break-word; max-width: 700px;"&gt;$export&amp;nbsp; MKL_INTERFACE_LAYER=GNU,LP64&lt;/P&gt;

	&lt;P style="margin-right: auto; margin-bottom: 20px; margin-left: auto; box-sizing: border-box; word-wrap: break-word; max-width: 700px;"&gt;$export&amp;nbsp; MKL_THREADING_LAYER=GNU&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 10 Sep 2018 08:00:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/symlink-MKL-blas-library-for-use-by-R/m-p/1181558#M29358</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2018-09-10T08:00:46Z</dc:date>
    </item>
  </channel>
</rss>

