Re: [Rcpp-devel] Intel compiler

2013-01-02 Thread Dirk Eddelbuettel
On 1 January 2013 at 20:54, Jules Archer wrote: | I'm interested in using the intel compiler for current and future Rccp | application development. Would it be possible to provide a simple | example or two of how this alternative compiler can be used to compile Rccp | applications? It can be as e

Re: [Rcpp-devel] Intel compiler

2013-01-02 Thread Yan Zhou
Just an amend to my last email. A second thought, I think you cannot use icpc to build Rcpp while R is built with GCC. Binaries built with icpc can link to and load shared objects (e.g., libR.so) built with GCC, but not the other way. So R may not be able to load the libRcpp.so or you shared object

Re: [Rcpp-devel] Intel compiler

2013-01-01 Thread Yan Zhou
The easiest way is to build R yourself with intel icpc. Below is the script I used to build R on Linux with intel compilers. I assume you also has intel ifort installed (otherwise you can use gfortran). Intel C++ is not much faster than latest g++ for much optimization. But considering you are usin