[Rd] Build R with MKL and ICC

arnaud gaboury arnaud.gaboury at gmail.com
Tue Sep 29 18:07:27 CEST 2015


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

now
$ ldd bin/exec/R
linux-vdso.so.1 (0x00007ffe305f9000)
libmkl_rt.so => /opt/intel/mkl/lib/intel64_lin/libmkl_rt.so (0x00007f216c9e3000)
        .................................

Thank you

> If you have 'ifort' available, you would probably want to add it to
> the list of environment variables.
>
> --nate
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel



More information about the R-devel mailing list