[关键字]: R, Installation, MKL
[重点摘要]:
在Ubuntu 14.04上利用Intel Compiler编译R, 并设定后让在Rstudio中使用。
1. 安装Intel Compiler, MKL, ... 到 /opt/intel
2. 下载R Source并解压缩到某个资料夹,以下代称<R HOME>
3. 在bash下执行以下指令:
```sh
# install tiff and cairo, or plot in rstudio will crash
sudo apt-get install libcairo2-dev libtiff5-dev
source /opt/intel/composerxe/bin/compilervars.sh intel6
export CC="icc"
export CXX="icpc"
export AR="xiar"
export LD="xild"
export CFLAGS="-O3 -ipo -openmp -xHost"
export CXXFLAGS="-O3 -ipo -openmp -xHost"
MKL="-lmkl_gf_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread"
echo $MKL
export MAIN_LDFLAGS='-openmp'
./configure