From nate at verse.com  Wed Sep  9 23:26:27 2015
From: nate at verse.com (Nathan Kurz)
Date: Wed, 9 Sep 2015 14:26:27 -0700
Subject: [Rd] Build R with MKL and ICC
In-Reply-To: <1441621388.4083.54.camel@iarc.fr>
References: <CAK1hC9uLYSyA-7W92TwD4J9adcxDRE1a2ig1iDDPSyN43kikyg@mail.gmail.com>
	<CAK1hC9u0btbbXGR3+OAcAd5n3SbFwUHoH+YsT5FzVpaeyZWdEQ@mail.gmail.com>
	<1441382281.4083.26.camel@iarc.fr>
	<CAK1hC9vg0SePBhEbp-Xpt8W1BDH-kY3XTLr39ZHCp2k2MHxUhA@mail.gmail.com>
	<1441621388.4083.54.camel@iarc.fr>
Message-ID: <CAFAN8vw53p+dCnr_LroKZbQMw66kwMiXypNBJAZVHhW998Di2g@mail.gmail.com>

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"

If you have 'ifort' available, you would probably want to add it to
the list of environment variables.

--nate



[Rd] Build R with MKL and ICC
Nathan Kurz