<?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 again, in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-R-with-MKL/m-p/1111548#M24393</link>
    <description>&lt;P&gt;Hi again,&lt;/P&gt;

&lt;P&gt;I was able to solve this problem with the following settings:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;MKLROOT is set by the Intel-provided shell script&lt;/LI&gt;
	&lt;LI&gt;LDFLAGS="-L$MKLROOT/lib/intel64 -m64"&lt;/LI&gt;
	&lt;LI&gt;MKL="-L$MKLROOT/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -ldl"&lt;/LI&gt;
	&lt;LI&gt;./configure --with-blas="$MKL" --with-lapack&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Alex&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jun 2016 17:59:56 GMT</pubDate>
    <dc:creator>Alex8</dc:creator>
    <dc:date>2016-06-28T17:59:56Z</dc:date>
    <item>
      <title>Compiling R with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-R-with-MKL/m-p/1111547#M24392</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to compile R 3.3.1 on Ubuntu Server 16.04 with Intel MKL using the GNU Fortran and C compilers. Unfortunately, I'm unable to get the gcc &amp;nbsp;to locate BLAS. I've tried several combinations of suggestions between those on the Intel website, including&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/build-r-301-with-intel-c-compiler-and-intel-mkl-on-linux"&gt;Build R-3.0.1 with Intel MKL&lt;/A&gt;,&amp;nbsp;&lt;A href="https://software.intel.com/en-us/articles/using-intel-mkl-with-r"&gt;Using Intel MKL with R&lt;/A&gt;,&amp;nbsp;and&amp;nbsp;the &lt;A href="https://software.intel.com/sites/products/mkl/mkl_link_line_advisor.htm"&gt;Intel Link Advisor&lt;/A&gt;. I've also found some other bloggers who have successfully compiled R with MKL. Unfortunately, no one else's solutions have worked for me thus far.&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I first ran the provided shell script to set the environment variables. I've noticed it's the INCLUDE variable is empty. Is this a problem, or did it happen by design? All others are appropriately created.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I've also been specifying the following LDFLAGS="-L$MKLROOT/lib/intel64" or LDFLAGS = "-L$MKLROOT/include" in order to point gcc to the directories.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;When I check config.log after the configuration, however, I see:&lt;/SPAN&gt;&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;configure: 31659: checking for dgemm_ in -lblas&lt;/LI&gt;
	&lt;LI&gt;configure: 31692: gcc -o conftest -march=native -O3 -I/usr/local/include -L/opt/intel/compilers_and_libraries_2016.3.210/linux/mkl/include conftest.c -lblas -lgfortran -lm -lquadmath -lrt -ldl -l &amp;gt; &amp;amp;5&lt;/LI&gt;
	&lt;LI&gt;/usr/bin/ld: cannot find -lblas&lt;/LI&gt;
	&lt;LI&gt;collect2: error: ld returned 1 exit status&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;for both settings of the LDFLAGS.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Any suggestions would be tremendously appreciated! Thank you for your time!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 17:03:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-R-with-MKL/m-p/1111547#M24392</guid>
      <dc:creator>Alex8</dc:creator>
      <dc:date>2016-06-28T17:03:44Z</dc:date>
    </item>
    <item>
      <title>Hi again,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-R-with-MKL/m-p/1111548#M24393</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;

&lt;P&gt;I was able to solve this problem with the following settings:&lt;/P&gt;

&lt;UL&gt;
	&lt;LI&gt;MKLROOT is set by the Intel-provided shell script&lt;/LI&gt;
	&lt;LI&gt;LDFLAGS="-L$MKLROOT/lib/intel64 -m64"&lt;/LI&gt;
	&lt;LI&gt;MKL="-L$MKLROOT/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm -ldl"&lt;/LI&gt;
	&lt;LI&gt;./configure --with-blas="$MKL" --with-lapack&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Alex&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2016 17:59:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-R-with-MKL/m-p/1111548#M24393</guid>
      <dc:creator>Alex8</dc:creator>
      <dc:date>2016-06-28T17:59:56Z</dc:date>
    </item>
    <item>
      <title>Hi Alex, </title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-R-with-MKL/m-p/1111549#M24394</link>
      <description>&lt;P&gt;Hi Alex,&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Glad to know you are able to solve the problem and thank you a lot for the sharing.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 01:04:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Compiling-R-with-MKL/m-p/1111549#M24394</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2016-06-29T01:04:50Z</dc:date>
    </item>
  </channel>
</rss>

