<?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 I understand very well I have in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Build-R-from-source-with-Inetl-MKL-and-ICC/m-p/1011058#M19233</link>
    <description>&lt;P&gt;I understand very well I have to use -qopenmp. I already did a built with this option.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Now you don't answer one of my question: why don't I have libmkl_intel_lp64.so,&amp;nbsp;libmkl_intel_thread.so and&lt;BR /&gt;
	libmkl_core.so &amp;nbsp;when running ldd ?&lt;/P&gt;

&lt;PRE style="color: rgb(0, 0, 0); line-height: normal;"&gt;Thank you.&lt;/PRE&gt;

&lt;DIV class="line alt2" style="line-height: 14.3088006973267px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background: none rgb(248, 248, 248) !important;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Sep 2015 17:18:11 GMT</pubDate>
    <dc:creator>arnaud_g_1</dc:creator>
    <dc:date>2015-09-03T17:18:11Z</dc:date>
    <item>
      <title>Build R from source with Inetl MKL and ICC</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Build-R-from-source-with-Inetl-MKL-and-ICC/m-p/1011056#M19231</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;OS: Fedora 22&lt;BR /&gt;
	parallel_studio_xe_2016&lt;BR /&gt;
	Hardware : 8 Thread(s) per core: 2 Vendor ID: GenuineIntel Model name:&lt;BR /&gt;
	Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz - Sandybridge&lt;BR /&gt;
	R-3.2.2&lt;/P&gt;

&lt;P&gt;Here is my build configuration:&lt;/P&gt;

&lt;P&gt;-------------------------------------------------------&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;source /opt/intel/compilers_and_libraries_2016/linux/mkl/bin/mklvars.sh intel64
source /opt/intel/bin/compilervars.sh intel64
_mkllibpath=$MKLROOT/lib/intel64
_openmplibpath=${PROD_DIR}/compiler/lib/intel64
export LD_LIBRARY_PATH=${_mkllibpath}:${_openmplibpath}
export MKL="-L${_mkllibpath} -L${_openmplibpath} -lmkl_intel_lp64 -lkml_intel_thread -lkml_core -liomp5 -lpthread"
export CC="icc"
export F77="ifort"
export CXX="icpc"
export AR="xiar"
export LD="xild"
export CFLAGS="-O3 -ipo -openmp -parallel -xAVX"
export CXXFLAGS="-O3 -ipo -openmp -parallel -xAVX"
export FFLAGS="-O3 -ipo -openmp -parallel -xAVX"
export MAIN_LDFLAGS='-openmp'
./configure --with-lapack --with-blas="$MKL" --enable-R-shlib
--enable-memory-profiling --enable-openmp --enable-BLAS-shlib
--enable-lto F77=${F77} FC=${F77}&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;After I run ./configure, it seems from config.log everything is fine:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;checking for dgemm_ in
result: yes

checking whether double complex BLAS can be used
result: yes

checking whether the BLAS is complete
result: yes&lt;/PRE&gt;

&lt;P&gt;The only error I can see is ld complaining about not finding -lRblas&lt;BR /&gt;
	----------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;Then run&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ make&lt;/PRE&gt;

&lt;P&gt;with no errors.&lt;BR /&gt;
	Now, with no make install, I get this:&lt;/P&gt;

&lt;P&gt;--------------------------------------------------------------------&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;$ ldd bin/exec/R
linux-vdso.so.1 (0x00007ffe073f3000)
libR.so =&amp;gt; /usr/lib64/R/lib/libR.so (0x00007f43939e6000)
libRblas.so =&amp;gt; not found
libm.so.6 =&amp;gt; /lib64/libm.so.6 (0x00007f43936de000)
libiomp5.so =&amp;gt; /opt/intel/compilers_and_libraries_2016.0.109/linux/compiler/lib/intel64/libiomp5.so
(0x00007f439339c000)
libgcc_s.so.1 =&amp;gt; /lib64/libgcc_s.so.1 (0x00007f4393185000)
libpthread.so.0 =&amp;gt; /lib64/libpthread.so.0 (0x00007f4392f69000)
libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007f4392ba8000)
libdl.so.2 =&amp;gt; /lib64/libdl.so.2 (0x00007f43929a4000)
libblas.so.3 =&amp;gt; /lib64/libblas.so.3 (0x00007f439274b000)
libgfortran.so.3 =&amp;gt; /lib64/libgfortran.so.3 (0x00007f439241f000)
libquadmath.so.0 =&amp;gt; /lib64/libquadmath.so.0 (0x00007f43921e0000)
libreadline.so.6 =&amp;gt; /lib64/libreadline.so.6 (0x00007f4391f96000)
libtre.so.5 =&amp;gt; /lib64/libtre.so.5 (0x00007f4391d85000)
libpcre.so.1 =&amp;gt; /lib64/libpcre.so.1 (0x00007f4391b15000)
liblzma.so.5 =&amp;gt; /lib64/liblzma.so.5 (0x00007f43918ef000)
libbz2.so.1 =&amp;gt; /lib64/libbz2.so.1 (0x00007f43916de000)
libz.so.1 =&amp;gt; /lib64/libz.so.1 (0x00007f43914c8000)
librt.so.1 =&amp;gt; /lib64/librt.so.1 (0x00007f43912c0000)
libicuuc.so.54 =&amp;gt; /lib64/libicuuc.so.54 (0x00007f4390f2e000)
libicui18n.so.54 =&amp;gt; /lib64/libicui18n.so.54 (0x00007f4390ad7000)
libgomp.so.1 =&amp;gt; /lib64/libgomp.so.1 (0x00007f43908b5000)
/lib64/ld-linux-x86-64.so.2 (0x00005557e2243000)
libtinfo.so.5 =&amp;gt; /lib64/libtinfo.so.5 (0x00007f439068a000)
libicudata.so.54 =&amp;gt; /lib64/libicudata.so.54 (0x00007f438ec5f000)
libstdc++.so.6 =&amp;gt; /lib64/libstdc++.so.6 (0x00007f438e8dc000)&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	-----------------------------------------------------------------------------------------------&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	Now a few questions:&lt;/P&gt;

&lt;P&gt;1- am I not supposed to see something like this in the ldd command return?&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;ibmkl_intel_lp64.so =&amp;gt;
libmkl_intel_thread.so =&amp;gt;
libmkl_core.so =&amp;gt;&amp;nbsp;
&lt;/PRE&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Or do I need to run $make install before ldd?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;2- when visiting &lt;A href="https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor"&gt;https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor&lt;/A&gt;&amp;nbsp;here is what I get as&lt;BR /&gt;
	linking and compiler options:&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Linking options:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;-L${MKLROOT}/lib/intel64 -lmkl_intel_ilp64 -lmkl_core
-lmkl_intel_thread -lpthread -lm&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;
	Compiler options:&lt;/P&gt;

&lt;PRE class="brush:bash;"&gt;&amp;nbsp;-DMKL_ILP64 -qopenmp -I${MKLROOT}/include&lt;/PRE&gt;

&lt;P&gt;What is the difference between -openmp and -qopenmp? Shall I use&lt;BR /&gt;
	indeed the above compiler and linking &amp;nbsp;options indeed?&lt;/P&gt;

&lt;P&gt;Thank you for help in this difficult topic for me.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 08:12:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Build-R-from-source-with-Inetl-MKL-and-ICC/m-p/1011056#M19231</guid>
      <dc:creator>arnaud_g_1</dc:creator>
      <dc:date>2015-09-03T08:12:39Z</dc:date>
    </item>
    <item>
      <title>-qopenmp is a spelling change</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Build-R-from-source-with-Inetl-MKL-and-ICC/m-p/1011057#M19232</link>
      <description>&lt;P&gt;-qopenmp is a spelling change introduced in intel 15.0 compilers . &amp;nbsp;If you fail to match the spelling to your compiler version, your build is likely not to produce intended results. The error message, if any, may not be clear.&lt;/P&gt;

&lt;P&gt;Your list of ldd dependencies indicates that gfortran is in use. &amp;nbsp;Possibly, if your flags spellings aren't right for your intel compilers, your build scripting could fall back to gnu compilers. There should be a configure log bearing on this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 12:36:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Build-R-from-source-with-Inetl-MKL-and-ICC/m-p/1011057#M19232</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2015-09-03T12:36:54Z</dc:date>
    </item>
    <item>
      <title>I understand very well I have</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Build-R-from-source-with-Inetl-MKL-and-ICC/m-p/1011058#M19233</link>
      <description>&lt;P&gt;I understand very well I have to use -qopenmp. I already did a built with this option.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Now you don't answer one of my question: why don't I have libmkl_intel_lp64.so,&amp;nbsp;libmkl_intel_thread.so and&lt;BR /&gt;
	libmkl_core.so &amp;nbsp;when running ldd ?&lt;/P&gt;

&lt;PRE style="color: rgb(0, 0, 0); line-height: normal;"&gt;Thank you.&lt;/PRE&gt;

&lt;DIV class="line alt2" style="line-height: 14.3088006973267px; font-family: Consolas, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; font-size: 13.0080003738403px; color: rgb(96, 96, 96); margin: 0px !important; padding: 0px !important; border: 0px !important; outline: 0px !important; float: none !important; vertical-align: baseline !important; position: static !important; left: auto !important; top: auto !important; right: auto !important; bottom: auto !important; height: auto !important; width: auto !important; min-height: auto !important; background: none rgb(248, 248, 248) !important;"&gt;&amp;nbsp;&lt;/DIV&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Sep 2015 17:18:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Build-R-from-source-with-Inetl-MKL-and-ICC/m-p/1011058#M19233</guid>
      <dc:creator>arnaud_g_1</dc:creator>
      <dc:date>2015-09-03T17:18:11Z</dc:date>
    </item>
    <item>
      <title>Hi Amaud,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Build-R-from-source-with-Inetl-MKL-and-ICC/m-p/1011059#M19234</link>
      <description>&lt;P&gt;Hi Amaud,&lt;/P&gt;

&lt;P&gt;You may try&amp;nbsp; &amp;nbsp;ldd ./R-3.2.2/lib/libR.so to see the MKL library.&lt;/P&gt;

&lt;P&gt;Best Regards,&lt;/P&gt;

&lt;P&gt;Ying&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 04:26:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Build-R-from-source-with-Inetl-MKL-and-ICC/m-p/1011059#M19234</guid>
      <dc:creator>Ying_H_Intel</dc:creator>
      <dc:date>2017-11-08T04:26:38Z</dc:date>
    </item>
  </channel>
</rss>

