[Rd] Build R with MKL and ICC
arnaud.gaboury at gmail.com
Fri Sep 4 10:01:03 CEST 2015
On Fri, Sep 4, 2015, 9:24 AM Bjørn-Helge Mevik <b.h.mevik at usit.uio.no>
arnaud gaboury <arnaud.gaboury at gmail.com> writes:
> After a few days of reading and headache, I finally gave a try at
> building R from source with Intel MKL and ICC. Documentation and posts
> on this topic are rather incomplete, sometime fantasist et do not give
> much explanations about configure options.
> As I am not sure if mine is correct, I would appreciate some advices and
This is how we build R with the Intel compilers and MKL on CentOS 6.x,
with different versions of R (latest version: 3.2.1) and Intel compilers
(latest version: 2015.3) on Intel SandyBridge CPUs:
fast="-ip -O3 -opt-mem-layout-trans=3 -xHost -mavx"
export CFLAGS="$fast -wd188 -fp-model precise"
export FFLAGS="$fast -fp-model precise"
export CXXFLAGS="$fast -fp-model precise"
export FCFLAGS="$fast -fp-model precise"
./configure --prefix=$destdir --with-blas='-mkl=parallel' --with-lapack
Thank you for this configuration. Nothing about openmp?
What about my cited missing librairies.
Any idea why they are not listed by the ldd command?
## Notes (they might not be true anymore):
## -static and -ipo break compilation
## -no-prec-div breaks make check
## -fp-model precise is needed for make check
## -wd188 removes a lot of warnings (see R Inst. & Adm. manual)
We have successfully used this setup for a couple of years now.
R-devel at r-project.org mailing list
[[alternative HTML version deleted]]
More information about the R-devel