<?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 Quote:Sang O. wrote: in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989235#M17942</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Sang O. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;However, if I try to use gcc as the compiler, I run into problems.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If you use gcc then you need "-lmkl_gnu_thread", instead of "-lmkl_intel_thread". Please check and let us know if this solves your problems.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2013 20:45:05 GMT</pubDate>
    <dc:creator>Zhang_Z_Intel</dc:creator>
    <dc:date>2013-04-11T20:45:05Z</dc:date>
    <item>
      <title>R linking to MKL</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989231#M17938</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;
&lt;P&gt;An attempt to dynamically link R to threaded MKL on a Linux workstation leads to a 'double complex BLAS...' error:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;gt;/usr/lib/R$ export LD_LIBRARY_PATH=/opt/intel/mkl/lib/intel64&lt;BR /&gt;&lt;BR /&gt;&amp;gt;/usr/lib/R$ sudo /home/XXXX/Documents/R-2.15.1/configure --enable-R-shlib --enable-threads=posix --with-lapack --with-blas="-I/opt/intel/mkl/include -L/opt/intel/mkl/lib/intel64 -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread"&lt;/P&gt;
&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;the following error message &amp;nbsp; seems to be not infrequently cited by R users attempting to link against MKL on R forums:&lt;BR /&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;checking for cblas_cdotu_sub in vecLib framework... no&lt;BR /&gt;checking for dgemm_ in -I/opt/intel/mkl/include -L/opt/intel/mkl/lib/intel64 -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -fopenmp -lpthread -lm... yes&lt;BR /&gt;checking whether double complex BLAS can be used... no&lt;BR /&gt;checking iconv.h usability... yes&lt;BR /&gt;checking iconv.h presence... yes&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; some additional diagnostic messages .... &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;R is now configured for x86_64-unknown-linux-gnu &lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; Source directory:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/XXXX/Documents/R-2.15.1 &lt;BR /&gt;&amp;nbsp; Installation directory:&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local &lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; C compiler:&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; gcc -std=gnu99&amp;nbsp; -g -O2 &lt;BR /&gt;&amp;nbsp; Fortran 77 compiler:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gfortran&amp;nbsp; -g -O2 &lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; C++ compiler:&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; g++&amp;nbsp; -g -O2 &lt;BR /&gt;&amp;nbsp; Fortran 90/95 compiler:&amp;nbsp;&amp;nbsp;&amp;nbsp; gfortran -g -O2 &lt;BR /&gt;&amp;nbsp; Obj-C compiler:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; Interfaces supported:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X11 &lt;BR /&gt;&amp;nbsp; External libraries:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; readline &lt;BR /&gt;&amp;nbsp; Additional capabilities:&amp;nbsp;&amp;nbsp; PNG, JPEG, NLS &lt;BR /&gt;&amp;nbsp; Options enabled:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shared R library, shared BLAS, R profiling, Java &lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; Recommended packages:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes&lt;/P&gt;
&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;#################################&lt;/P&gt;
&lt;P&gt;Alternatively, using syntax suggested in R installation manual (which cites Intel engineer):&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;gt;/usr/lib/R$ export MKL_LIB_PATH=/opt/intel/mkl/lib/intel64&lt;BR /&gt;&lt;BR /&gt;&amp;gt;/usr/lib/R$ MKL="-L${MKL_LIB_PATH} -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_lapack -lmkl_core -fopenmp -lpthread"&lt;BR /&gt;&lt;BR /&gt;&amp;gt;/usr/lib/R$ sudo /home/XXXX/Documents/R-2.15.1/configure --enable-R-shlib --enable-threads=posix --with-blas="$MKL"&lt;BR /&gt;~~~~~~~~~~~~~~~&lt;BR /&gt;&amp;nbsp; checking whether ctanh exists and is declared... yes&lt;BR /&gt;checking for cblas_cdotu_sub in vecLib framework... no&lt;BR /&gt;checking for dgemm_ in -L/opt/intel/mkl/lib/intel64 -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_lapack -lmkl_core -fopenmp -lpthread... no&lt;BR /&gt;checking for dgemm_... no&lt;BR /&gt;checking for ATL_xerbla in -latlas... no&lt;BR /&gt;checking for dgemm_ in -lblas... yes&lt;BR /&gt;checking for dgemm_ in -ldgemm... no&lt;BR /&gt;checking for dgemm_ in -lblas... (cached) yes&lt;BR /&gt;checking for dgemm_ in -lessl... no&lt;BR /&gt;checking for dgemm_ in -lblas... (cached) yes&lt;BR /&gt;checking whether double complex BLAS can be used... yes&lt;BR /&gt;checking whether the BLAS is complete... yes&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; some&amp;nbsp; additional diagnostic messages .... &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;R is now configured for x86_64-unknown-linux-gnu&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Source directory:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /home/XXXX/Documents/R-2.15.1&lt;BR /&gt;&amp;nbsp; Installation directory:&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; C compiler:&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; gcc -std=gnu99&amp;nbsp; -g -O2&lt;BR /&gt;&amp;nbsp; Fortran 77 compiler:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gfortran&amp;nbsp; -g -O2&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; C++ compiler:&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; g++&amp;nbsp; -g -O2&lt;BR /&gt;&amp;nbsp; Fortran 90/95 compiler:&amp;nbsp;&amp;nbsp;&amp;nbsp; gfortran -g -O2&lt;BR /&gt;&amp;nbsp; Obj-C compiler:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Interfaces supported:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X11&lt;BR /&gt;&amp;nbsp; External libraries:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; readline, BLAS(generic)&lt;BR /&gt;&amp;nbsp; Additional capabilities:&amp;nbsp;&amp;nbsp; PNG, JPEG, NLS&lt;BR /&gt;&amp;nbsp; Options enabled:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shared R library, R profiling, Java&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; Recommended packages:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes&lt;/P&gt;
&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Constantine&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2012 02:53:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989231#M17938</guid>
      <dc:creator>cml_nb</dc:creator>
      <dc:date>2012-09-04T02:53:22Z</dc:date>
    </item>
    <item>
      <title>Constantine,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989232#M17939</link>
      <description>Constantine,

As you already observed, using the link line suggested in the official R installation instructions the "double complex BLAS" error goes away. So I do not see a problem here. Maybe, I misunderstood your question. Would you clarify what problems you see, please?

Thank you,
Zhang</description>
      <pubDate>Wed, 12 Sep 2012 18:39:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989232#M17939</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2012-09-12T18:39:57Z</dc:date>
    </item>
    <item>
      <title>I am having a similar issue.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989233#M17940</link>
      <description>&lt;P&gt;I am having a similar issue.&lt;/P&gt;
&lt;P&gt;When I compile R with intel compilers, everything works great.&lt;BR /&gt;&amp;nbsp;================================&lt;BR /&gt;R is now configured for x86_64-unknown-linux-gnu&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; Source directory: . &lt;BR /&gt; Installation directory: /usr/local &lt;BR /&gt; &lt;BR /&gt; C compiler: icc -std=c99 -g -O3 -wd188 -ip &lt;BR /&gt; Fortran 77 compiler: ifort -g -O3 &lt;BR /&gt; &lt;BR /&gt; C++ compiler: icpc -g -O3 &lt;BR /&gt; Fortran 90/95 compiler: ifort -g -O3 &lt;BR /&gt; Obj-C compiler: &lt;BR /&gt; &lt;BR /&gt; Interfaces supported: X11 &lt;BR /&gt; External libraries: readline, BLAS(generic), LAPACK(in blas) &lt;BR /&gt; Additional capabilities: PNG, JPEG, NLS &lt;BR /&gt; Options enabled: shared R library, R profiling&lt;BR /&gt;================================&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I configure, I use&amp;nbsp;the following options in "config.site"&lt;/P&gt;
&lt;P&gt;================================&lt;BR /&gt;CC='icc -std=c99' &lt;BR /&gt;CFLAGS='-g -O3 -wd188 -ip ' &lt;BR /&gt;F77='ifort' &lt;BR /&gt;FFLAGS='-g -O3 ' &lt;BR /&gt;CXX='icpc' &lt;BR /&gt;CXXFLAGS='-g -O3 ' &lt;BR /&gt;FC='ifort' &lt;BR /&gt;FCFLAGS='-g -O3 '&lt;BR /&gt;MKL_LIB_PATH=/opt/intel/mkl/lib/intel64&lt;BR /&gt;MKL=" -L${MKL_LIB_PATH} \&amp;nbsp;&lt;BR /&gt;-Wl,--start-group \&amp;nbsp;&lt;BR /&gt;-lmkl_intel_lp64 \&amp;nbsp;&lt;BR /&gt;-lmkl_intel_thread \&amp;nbsp;&lt;BR /&gt;-lmkl_core \&amp;nbsp;&lt;BR /&gt;-Wl,--end-group \&amp;nbsp;&lt;BR /&gt;-liomp5 -lpthread"&lt;BR /&gt;BLAS_LIBS="$MKL"&lt;BR /&gt;================================&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if I try to use gcc as the compiler, I run into problems. Following is the "config.site"&lt;/P&gt;
&lt;P&gt;================================&lt;BR /&gt;CFLAGS='-g -O2 ' &lt;BR /&gt;FFLAGS='-g -O2 ' &lt;BR /&gt;CXXFLAGS='-g -O2 ' &lt;BR /&gt;FCFLAGS='-g -O2 '&lt;BR /&gt;MKL_LIB_PATH=/opt/intel/mkl/lib/intel64&lt;/P&gt;
&lt;P&gt;MKL=" -L${MKL_LIB_PATH} \ &lt;BR /&gt; -Wl,--start-group \ &lt;BR /&gt; -lmkl_gf_ilp64 \ &lt;BR /&gt; -lmkl_intel_thread \ &lt;BR /&gt; -lmkl_core \ &lt;BR /&gt; -Wl,--end-group \ &lt;BR /&gt; -liomp5 -lpthread"&lt;BR /&gt;BLAS_LIBS="$MKL"&lt;BR /&gt;================================&lt;/P&gt;
&lt;P&gt;The output indicate that dgemm_ in mkl_gf_lp64.so is not found:&lt;/P&gt;
&lt;P&gt;~/Downloads/R-3.0.0$ nm -D /opt/intel/mkl/lib/intel64/libmkl_gf_lp64.so | grep dgemm_ &lt;BR /&gt;00000000003309f0 T dgemm_&lt;/P&gt;
&lt;P&gt;This is also reflected in the summary of the configure command:&lt;/P&gt;
&lt;P&gt;================================&lt;BR /&gt;R is now configured for x86_64-unknown-linux-gnu&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; Source directory: . &lt;BR /&gt; Installation directory: /usr/local &lt;BR /&gt; &lt;BR /&gt; C compiler: gcc -std=gnu99 -g -O2 &lt;BR /&gt; Fortran 77 compiler: gfortran -g -O2 &lt;BR /&gt; &lt;BR /&gt; C++ compiler: g++ -g -O2 &lt;BR /&gt; Fortran 90/95 compiler: gfortran -g -O2 &lt;BR /&gt; Obj-C compiler: &lt;BR /&gt; &lt;BR /&gt; Interfaces supported: X11 &lt;BR /&gt; External libraries: readline, BLAS(generic), LAPACK(generic) &lt;BR /&gt; Additional capabilities: PNG, JPEG, NLS &lt;BR /&gt; Options enabled: shared R library, R profiling &lt;BR /&gt; &lt;BR /&gt; Recommended packages: yes&lt;BR /&gt;================================&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Any help would be appreciated&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;================================ truncated&lt;BR /&gt;checking for cblas_cdotu_sub in vecLib framework... no &lt;BR /&gt;checking for dgemm_ in -l -L -Wl,--start-group -lmkl_gf_ilp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -liomp\&lt;BR /&gt;5 -lpthread... no &lt;BR /&gt;checking for dgemm_... no &lt;BR /&gt;checking for ATL_xerbla in -latlas... no &lt;BR /&gt;checking for dgemm_ in -lblas... yes &lt;BR /&gt;checking for dgemm_ in -ldgemm... no &lt;BR /&gt;checking for dgemm_ in -lblas... (cached) yes &lt;BR /&gt;checking for dgemm_ in -lessl... no &lt;BR /&gt;checking for dgemm_ in -lblas... (cached) yes &lt;BR /&gt;checking whether double complex BLAS can be used... yes &lt;BR /&gt;checking whether the BLAS is complete... yes &lt;BR /&gt;checking for dpstrf_... no &lt;BR /&gt;checking for dpstrf_ in -llapack... yes&lt;BR /&gt;================================&amp;nbsp;truncated&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2013 22:54:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989233#M17940</guid>
      <dc:creator>Sang_O_</dc:creator>
      <dc:date>2013-04-05T22:54:46Z</dc:date>
    </item>
    <item>
      <title>I got no problem with</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989234#M17941</link>
      <description>I got no problem with "complex double BLAS" checking. I don't see an issue here. I've tested R-2.15.1 with both MKL 10.3 and MKL 11.0. Here are my steps:

- First, properly set MKL related env-variables (MKLROOT and LD_LIBRARY_PATH, etc.). This can be easily done by this command:

    source /opt/intel/mkl/bin/mklvars.sh intel64

- Next, configure R with this:

    ./configure --enable-R-shlib --enable-threads=posix --with-lapack --with-blas="-fopenmp -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -lpthread -lm" 


The configure output did not show any complex double BLAS errors. My GCC version is 4.4.4.

Please let me know if this helps you, or if you want us to investigate it further?

Thanks,

Zhang</description>
      <pubDate>Thu, 11 Apr 2013 18:33:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989234#M17941</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2013-04-11T18:33:50Z</dc:date>
    </item>
    <item>
      <title>Quote:Sang O. wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989235#M17942</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Sang O. wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;However, if I try to use gcc as the compiler, I run into problems.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If you use gcc then you need "-lmkl_gnu_thread", instead of "-lmkl_intel_thread". Please check and let us know if this solves your problems.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2013 20:45:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989235#M17942</guid>
      <dc:creator>Zhang_Z_Intel</dc:creator>
      <dc:date>2013-04-11T20:45:05Z</dc:date>
    </item>
    <item>
      <title>I suppose mkl_gnu_thread uses</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989236#M17943</link>
      <description>&lt;P&gt;I suppose mkl_gnu_thread uses libgomp, while mkl_intel_thread uses libiomp5.&amp;nbsp; libiomp5 has support for all gcc/gfortran linux OpenMP syntax. libgomp would not work with mkl_intel_thread, nor would the application work if both libgomp and libiomp5 are linked in.&amp;nbsp; ldd would be a good check to assure that you don't have both OpenMP .so linked.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2013 14:32:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989236#M17943</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-04-12T14:32:13Z</dc:date>
    </item>
    <item>
      <title>Hi all,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989237#M17944</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I did some check recently about mkl and R article recently,&lt;/P&gt;
&lt;P&gt;&lt;A href="http://software.intel.com/en-us/articles/build-r-301-with-intel-c-compiler-and-intel-mkl-on-linux"&gt;http://software.intel.com/en-us/articles/build-r-301-with-intel-c-compiler-and-intel-mkl-on-linux&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://software.intel.com/en-us/articles/using-intel-mkl-with-r"&gt;http://software.intel.com/en-us/articles/using-intel-mkl-with-r&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I run into bunch of building problem (include sangs). most of them was tracked to environment finally.&lt;/P&gt;
&lt;P&gt;So I'd like&amp;nbsp;add notes here&amp;nbsp;again&amp;nbsp; as Zhang mentioned,&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;properly (carefully) set MKL related env-variables (MKLROOT,LIBRARY_PATH&amp;nbsp;&amp;nbsp;and LD_LIBRARY_PATH, etc.). &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Or please use&amp;nbsp;mkl varsetting&amp;nbsp;bash&amp;nbsp;for safe&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;source /opt/intel/mkl/bin/mklvars.sh intel64&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@ Constantine&lt;/STRONG&gt;, i try your command line exactly with lastest MKL composer_xe_2013.4.183 and R version R-3.0.1. They works fine and double complex blas works too. you may try again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other thing,You mentioned&amp;nbsp; using syntax suggested in R installation manual (which cites Intel engineer):and get &lt;BR /&gt;checking for dgemm_ in -L/opt/intel/mkl/lib/intel64 -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_lapack -lmkl_core -fopenmp -lpthread... no&lt;/P&gt;
&lt;P&gt;Actually, the MKL library isn't work here. Please check config.log to see the exact error message for this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;@Sang&lt;/STRONG&gt;&lt;BR /&gt;When you try to use GCC and you call mkl_ilp64 interface, &lt;BR /&gt;MKL=" -L${MKL_LIB_PATH} \ &lt;BR /&gt;-Wl,--start-group \ &lt;BR /&gt;-lmkl_gf&lt;STRONG&gt;_ilp64&lt;/STRONG&gt; \ &lt;BR /&gt;-lmkl_intel_thread \ &lt;BR /&gt;-lmkl_core \ &lt;BR /&gt;-Wl,--end-group \ &lt;BR /&gt;-liomp5 -lpthread"&lt;/P&gt;
&lt;P&gt;But you check the library of mkl_&lt;STRONG&gt;lp64&lt;/STRONG&gt;.&amp;nbsp; nm -D /opt/intel/mkl/lib/intel64/libmkl_gf_lp64.so | grep dgemm_&lt;/P&gt;
&lt;P&gt;Despite this, it should be ok to use ILP64 interface, but take care of the integer type.&lt;/P&gt;
&lt;P&gt;The ILP64 interface provides for the following:&lt;/P&gt;
&lt;P&gt;•Support large data arrays (with more than 231-1 elements) &lt;BR /&gt;•Enable compiling your Fortran code with the -i8 compiler option .&lt;/P&gt;
&lt;P&gt;Please check if you have libmkl_gf_ilp64.so under the opt/intel/mkl/lib/intel64.&amp;nbsp; &lt;BR /&gt;&amp;nbsp;( I prefer to use the exact path like opt/intel/composer_xe_2013.4.183/mkl/lib/intel64 , instead the quick link)&lt;/P&gt;
&lt;P&gt;Second, regarding the gcc build fails, you have &lt;BR /&gt;checking for dgemm_ in -l -L -Wl,--start-group -lmkl_gf_ilp64 -lmkl_intel_thread -lmkl_core -Wl,--end-group -liomp\&lt;BR /&gt;5 -lpthread... no&lt;/P&gt;
&lt;P&gt;as you see -L is blank,&amp;nbsp; MKL_LIB_PATH is even not there. So please check.&lt;/P&gt;
&lt;P&gt;Third, you may run into next problem : can't found -liomp5. (please open config.log to check)&lt;BR /&gt;when using icc, you may set right environment for icc, thus the default path /opt/intel/composer_xe_2013.4.183/compiler/lib/intel64/&amp;nbsp; of libiomp5.so is ready. &lt;BR /&gt;but when using gcc, the path is not there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you may try&lt;BR /&gt;for example, &lt;BR /&gt;MKL_LIB_PATH=/opt/intel/composer_xe_2013.4.183/mkl/lib/intel64&lt;BR /&gt;OMP_LIB_PATH=/opt/intel/composer_xe_2013.4.183/compiler/lib/intel64/&amp;nbsp;&amp;nbsp; &lt;BR /&gt;export LD_LIBRARY_PATH=${MKL_LIB_PATH}:${OMP_LIB_PATH} &lt;BR /&gt;MKL=" -L${MKL_LIB_PATH}&amp;nbsp;&amp;nbsp; -L${OMP_LIB_PATH}&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; \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Wl,--start-group&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -lmkl_gf_lp64&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -lmkl_intel_thread&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -lmkl_core&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -Wl,--end-group&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; \&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -liomp5 -lpthread"&lt;BR /&gt;./configure --with-blas="$MKL" --with-lapack (&amp;nbsp;I prefer to the exact path, instead the quick link).&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Ying&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2013 05:53:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989237#M17944</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2013-07-03T05:53:00Z</dc:date>
    </item>
    <item>
      <title>Link another topic, where</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989238#M17945</link>
      <description>&lt;P&gt;Link another topic, where checking whether double complex BLAS can be used... no&amp;nbsp; is resolved by linking libmkl_intel_lp64.so.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://software.intel.com/en-us/forums/topic/397399"&gt;http://software.intel.com/en-us/forums/topic/397399&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2013 01:11:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989238#M17945</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2013-07-04T01:11:50Z</dc:date>
    </item>
    <item>
      <title>Hi,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989239#M17946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am not able to compile the MKL into R.&amp;nbsp; I am using gcc 4.6.3 and fgortran 4.6.3 compilers with MKL 11.1.0.080.&lt;/P&gt;

&lt;P&gt;I use the following to configure as advised above for gnu though do not use shared libraries:&lt;/P&gt;

&lt;P&gt;source /opt/intel/mkl/bin/mklvars.sh intel64&lt;/P&gt;

&lt;P&gt;./configure&amp;nbsp; --enable-threads=posix --with-lapack --with-blas="-fopenmp -m64 -I$MKLROOT/include -L$MKLROOT/lib/intel64 -lmkl_gf_lp64 -lmkl_gnu_thread -lmkl_core -lpthread -lm" --with-x=no&lt;/P&gt;

&lt;P&gt;R is now configured for x86_64-unknown-linux-gnu&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Source directory:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;BR /&gt;
	&amp;nbsp; Installation directory:&amp;nbsp;&amp;nbsp;&amp;nbsp; /usr/local&lt;/P&gt;

&lt;P&gt;&amp;nbsp; C compiler:&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; gcc -std=gnu99&amp;nbsp; -g -O2&lt;BR /&gt;
	&amp;nbsp; Fortran 77 compiler:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gfortran&amp;nbsp; -g -O2&lt;/P&gt;

&lt;P&gt;&amp;nbsp; C++ compiler:&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; g++&amp;nbsp; -g -O2&lt;BR /&gt;
	&amp;nbsp; Fortran 90/95 compiler:&amp;nbsp;&amp;nbsp;&amp;nbsp; gfortran -g -O2&lt;BR /&gt;
	&amp;nbsp; Obj-C compiler:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Interfaces supported:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; External libraries:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; readline&lt;BR /&gt;
	&amp;nbsp; Additional capabilities:&amp;nbsp;&amp;nbsp; NLS&lt;BR /&gt;
	&amp;nbsp; Options enabled:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shared BLAS, R profiling&lt;/P&gt;

&lt;P&gt;&amp;nbsp; Recommended packages:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yes&lt;/P&gt;

&lt;P&gt;After make, make install I run a benchmark.&lt;/P&gt;

&lt;P&gt;The benchmark test described in &lt;A href="http://software.intel.com/en-us/articles/using-intel-mkl-with-r"&gt;http://software.intel.com/en-us/articles/using-intel-mkl-with-r &lt;/A&gt;shows it is only running with 1 core.&amp;nbsp; top shows the same&lt;/P&gt;

&lt;P&gt;root@Ubuntu-1204-precise-64-minimal ~ # time R CMD BATCH R-benchmark-25.R --no-save&lt;/P&gt;

&lt;P&gt;real&amp;nbsp;&amp;nbsp; &amp;nbsp;2m9.587s&lt;BR /&gt;
	user&amp;nbsp;&amp;nbsp; &amp;nbsp;2m8.124s&lt;BR /&gt;
	sys&amp;nbsp;&amp;nbsp; &amp;nbsp;0m1.052s&lt;/P&gt;

&lt;P&gt;Please help.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2013 18:37:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989239#M17946</guid>
      <dc:creator>Michael_S_2</dc:creator>
      <dc:date>2013-12-26T18:37:53Z</dc:date>
    </item>
    <item>
      <title>I would be concerned that you</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989240#M17947</link>
      <description>&lt;P&gt;I would be concerned that you have linked against the default linux lapack for gfortran and that it may not use the MKL functions. &amp;nbsp;The MKL libraries you need have support for both lapack and blas. &amp;nbsp;The intel reference you cited states specifically that it won't work in the order you give.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2013 20:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989240#M17947</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2013-12-26T20:24:00Z</dc:date>
    </item>
    <item>
      <title>@Michael S.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989241#M17948</link>
      <description>&lt;P&gt;@Michael S.&lt;/P&gt;

&lt;P&gt;Have you checked whether the MKL_NUM_THREADS or OMP_SET_NUM_THREADS or MKL_DYNAMIC&amp;nbsp;env variables are set correctly?&lt;/P&gt;

&lt;P&gt;--Vipin&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2014 05:03:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989241#M17948</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2014-01-27T05:03:46Z</dc:date>
    </item>
    <item>
      <title>Sorry, OMP_NUM_THREADS env.</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989242#M17949</link>
      <description>&lt;P&gt;Sorry, OMP_NUM_THREADS env. variable.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2014 05:05:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/R-linking-to-MKL/m-p/989242#M17949</guid>
      <dc:creator>VipinKumar_E_Intel</dc:creator>
      <dc:date>2014-01-27T05:05:06Z</dc:date>
    </item>
  </channel>
</rss>

