[Rd] Build R with MKL and ICC
nate at verse.com
Tue Sep 29 20:11:59 CEST 2015
Hi Arnaud --
I'm glad it's working for you. I'm not sure I understand your final
answer. Are you saying that the version I posted worked for you as
given, or that you had to remove some of the other options?
Perhaps you could post the full final recipe in a way that others can
copy and paste if they find this thread in the future?
Also, did you determine if the the same approach worked for linking to
MKL worked when using a non-Intel compiler? That is, can you
substitute the gcc or clang tool names and get the same result?
On Tue, Sep 29, 2015 at 9:07 AM, arnaud gaboury
<arnaud.gaboury at gmail.com> wrote:
> On Wed, Sep 9, 2015 at 11:26 PM, Nathan Kurz <nate at verse.com> wrote:
>> As a short and simple approach, I just compiled the current R release
>> on Ubuntu with ICC and MKL using just this:
>> $ tar -xzf R-3.2.2.tar.gz
>> $ cd R-3.2.2
>> $ CC=icc CXX=icpc AR=xiar LD=xild CFLAGS="-g -O3 -xHost" CXXFLAGS="-g
>> -O3 -xHost" ./configure --with-blas="-lmkl_rt -lpthread" --with-lapack
>> --enable-memory-profiling --enable-R-shlib
>> $ make
>> $ sudo make install
>> $ R --version
>> R version 3.2.2 (2015-08-14) -- "Fire Safety"
> That is exactly the right combo: with-blas="-lmkl_rt -lpthread"
> Nothing more for $MKL
> $ ldd bin/exec/R
> linux-vdso.so.1 (0x00007ffe305f9000)
> libmkl_rt.so => /opt/intel/mkl/lib/intel64_lin/libmkl_rt.so (0x00007f216c9e3000)
More information about the R-devel