<?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 Building R with MKL in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1263055#M31002</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am new to intel c++ compiler.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Further to installation of 2017 intel c++ composer edition, I am trying to build R with Intel MKL, following this link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/using-intel-mkl-with-r.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/articles/using-intel-mkl-with-r.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In particular,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;building R with GNU gcc and GNU gfortran, to use the GNU OpenMP* threaded version of Intel® MKL in R on a Linux operating system"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=====&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$ MKL="-Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$&amp;nbsp;MKL="-Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;checking for dgemm_ in -Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm... no&lt;BR /&gt;configure: error: BLAS was specified but not available&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=======&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When I check R&amp;nbsp;&lt;/SPAN&gt;config.log, I find&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=====&lt;/P&gt;
&lt;P&gt;configure:41233: checking for dgemm_ in -Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm&lt;BR /&gt;configure:41255: /usr/local/bin/gcc-10 -o conftest -g -O2 -fpic -I/usr/local/include -L/usr/local/lib64 conftest.c -Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm -L/usr/lib/gcc/x86_64-redhat-linux/4.8.2 -lgfortran -lm -lquadmath -lrt -ldl -lm &amp;gt;&amp;amp;5&lt;BR /&gt;/bin/ld: cannot find -lmkl_gf_lp64&lt;BR /&gt;/bin/ld: cannot find -lmkl_gnu_thread&lt;BR /&gt;/bin/ld: cannot find -lmkl_core&lt;/P&gt;
&lt;P&gt;========&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I realise there isn't "libmkl_gf_lp64.so" in /opt/intel directory, which &amp;nbsp;I learn is "LP64 interface library for the GNU Fortran compilers"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To build R with Intel MKL, I wonder if I need to buy Intel fortran compiler to have the libmkl_gf_lp64.so library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;ss&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Mar 2021 13:03:01 GMT</pubDate>
    <dc:creator>syk</dc:creator>
    <dc:date>2021-03-10T13:03:01Z</dc:date>
    <item>
      <title>Building R with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1263055#M31002</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am new to intel c++ compiler.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Further to installation of 2017 intel c++ composer edition, I am trying to build R with Intel MKL, following this link&lt;/P&gt;
&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/using-intel-mkl-with-r.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/articles/using-intel-mkl-with-r.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;In particular,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;building R with GNU gcc and GNU gfortran, to use the GNU OpenMP* threaded version of Intel® MKL in R on a Linux operating system"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=====&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$ MKL="-Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;$&amp;nbsp;MKL="-Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;checking for dgemm_ in -Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm... no&lt;BR /&gt;configure: error: BLAS was specified but not available&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=======&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When I check R&amp;nbsp;&lt;/SPAN&gt;config.log, I find&amp;nbsp;&lt;/P&gt;
&lt;P&gt;=====&lt;/P&gt;
&lt;P&gt;configure:41233: checking for dgemm_ in -Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm&lt;BR /&gt;configure:41255: /usr/local/bin/gcc-10 -o conftest -g -O2 -fpic -I/usr/local/include -L/usr/local/lib64 conftest.c -Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm -L/usr/lib/gcc/x86_64-redhat-linux/4.8.2 -lgfortran -lm -lquadmath -lrt -ldl -lm &amp;gt;&amp;amp;5&lt;BR /&gt;/bin/ld: cannot find -lmkl_gf_lp64&lt;BR /&gt;/bin/ld: cannot find -lmkl_gnu_thread&lt;BR /&gt;/bin/ld: cannot find -lmkl_core&lt;/P&gt;
&lt;P&gt;========&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I realise there isn't "libmkl_gf_lp64.so" in /opt/intel directory, which &amp;nbsp;I learn is "LP64 interface library for the GNU Fortran compilers"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To build R with Intel MKL, I wonder if I need to buy Intel fortran compiler to have the libmkl_gf_lp64.so library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;ss&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Mar 2021 13:03:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1263055#M31002</guid>
      <dc:creator>syk</dc:creator>
      <dc:date>2021-03-10T13:03:01Z</dc:date>
    </item>
    <item>
      <title>Re:Building R with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1263381#M31004</link>
      <description>&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;Could you please go to /opt/intel/&amp;lt;composer_xe_XXXX&amp;gt;/mkl/lib/intel64&lt;/P&gt;&lt;P&gt;to see if you have the libmkl_gf_lp64.a and libmkl_gf_lp64.so in the directory?&amp;nbsp;&amp;nbsp;if no, then you may need to reinstall MKL.&lt;/P&gt;&lt;P&gt;If you have only libmk_gf_lp64.a, then please use the static link&amp;nbsp;(Option C)as shown in the article.&lt;/P&gt;&lt;P&gt;&lt;A href="https://software.intel.com/content/www/us/en/develop/articles/using-intel-mkl-with-r.html" target="_blank"&gt;https://software.intel.com/content/www/us/en/develop/articles/using-intel-mkl-with-r.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please revert to us once you check the above-mentioned details. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Regards&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Goutham&lt;/I&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Mar 2021 11:00:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1263381#M31004</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2021-03-11T11:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Building R with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1264700#M31019</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;I&gt;Goutham,&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;Yes. I eventually install psxe cluster linux 2017update 8 and found&amp;nbsp;&lt;SPAN&gt;libmkl_gf_lp64.a and libmkl_gf_lp64.so installed.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I did not know at the first place "-lmkl_gf_lp64" does need interface library for gnu fortran. Now I learnt it.&lt;/P&gt;
&lt;P&gt;BTW, I wonder why this R configure script don't return "LAPACK(MKL)" at the "External libraries: .." line. I can make R without any error and sure that BLAS (MKL) is fine.&lt;/P&gt;
&lt;P&gt;But I am not sure if R lapack library is linked to MKL lapack.&lt;/P&gt;
&lt;P&gt;====&lt;/P&gt;
&lt;P&gt;$&amp;nbsp;./configure CC=/usr/local/bin/gcc-10 CXX=/usr/local/bin/g++-10 --with-blas="-L/opt/intel/compilers_and_libraries_2017.8.262/linux/mkl/lib/intel64_lin -Wl,--no-as-needed -lmkl_gf_lp64 -Wl,--start-group -lmkl_gnu_thread -lmkl_core -Wl,--end-group -fopenmp -ldl -lpthread -lm" --with-lapack --enable-R-profiling --enable-memory-profiling --enable-R-shlib --enable-BLAS-shlib --enable-java --enable-long-double --with-readline --with-pcre1 --with-tcltk --with-cairo --with-libpng --with-jpeglib --with-libtiff --with-ICU --with-x&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;R is now configured for x86_64-pc-linux-gnu&lt;/P&gt;
&lt;P&gt;Source directory: .&lt;BR /&gt;Installation directory: /usr/local&lt;/P&gt;
&lt;P&gt;C compiler: /usr/local/bin/gcc-10 -g -O2&lt;BR /&gt;Fortran fixed-form compiler: gfortran -g -O2&lt;/P&gt;
&lt;P&gt;Default C++ compiler: /usr/local/bin/g++-10 -std=gnu++11 -g -O2&lt;BR /&gt;C++14 compiler: /usr/local/bin/g++-10 -std=gnu++14 -g -O2&lt;BR /&gt;C++17 compiler: /usr/local/bin/g++-10 -std=gnu++17 -g -O2&lt;BR /&gt;C++20 compiler: /usr/local/bin/g++-10 -std=gnu++20 -g -O2&lt;BR /&gt;Fortran free-form compiler: gfortran -g -O2&lt;BR /&gt;Obj-C compiler:&lt;/P&gt;
&lt;P&gt;Interfaces supported: X11, tcltk&lt;BR /&gt;External libraries: pcre1, readline, BLAS(MKL), curl&lt;BR /&gt;Additional capabilities: PNG, JPEG, TIFF, NLS, cairo, ICU&lt;BR /&gt;Options enabled: shared R library, shared BLAS, R profiling, memory profiling&lt;/P&gt;
&lt;P&gt;Capabilities skipped: &lt;BR /&gt;Options not enabled:&lt;/P&gt;
&lt;P&gt;Recommended packages: yes&lt;/P&gt;
&lt;P&gt;=========&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 07:46:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1264700#M31019</guid>
      <dc:creator>syk</dc:creator>
      <dc:date>2021-03-16T07:46:51Z</dc:date>
    </item>
    <item>
      <title>Re:Building R with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1267244#M31068</link>
      <description>&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;We are working on your issue internally, we will get back to you soon.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Regards&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Goutham&lt;/I&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Mar 2021 07:52:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1267244#M31068</guid>
      <dc:creator>GouthamK_Intel</dc:creator>
      <dc:date>2021-03-24T07:52:19Z</dc:date>
    </item>
    <item>
      <title>Re:Building R with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1277472#M31264</link>
      <description>&lt;P&gt;Hi Samuel,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Have you tried the R command sessionInfo()?&lt;/P&gt;&lt;P&gt;&amp;gt; sessionInfo()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If R is linked to MKL correctly you will see something like this:&lt;/P&gt;&lt;P&gt;R version....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Matrix products: default&lt;/P&gt;&lt;P&gt;&lt;B&gt;BLAS/LAPACK: /optintel/oneapi/mkl/2021.2.0/lib/intel64/libmkl_rt.so.1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;locale:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Khang&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 28 Apr 2021 22:43:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1277472#M31264</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2021-04-28T22:43:05Z</dc:date>
    </item>
    <item>
      <title>Re:Building R with MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1277499#M31265</link>
      <description>&lt;P&gt;Sorry, typo:&lt;/P&gt;&lt;P&gt;It should be something like this:&lt;/P&gt;&lt;P&gt;R version....&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Matrix products: default&lt;/P&gt;&lt;P&gt;&lt;B&gt;BLAS/LAPACK: /opt/intel/oneapi/mkl/2021.2.0/lib/intel64/libmkl_rt.so.1&lt;/B&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;locale:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 29 Apr 2021 01:08:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Building-R-with-MKL/m-p/1277499#M31265</guid>
      <dc:creator>Khang_N_Intel</dc:creator>
      <dc:date>2021-04-29T01:08:26Z</dc:date>
    </item>
  </channel>
</rss>

