Skip to content
Prev 1708 / 2152 Next

Intel Phi Coprocessor? -> i5/i7 instruction set in R binary?

On 06/10/2013 01:53 PM, ivo welch wrote:
Dirk helpfully told me that the switch to compile for your
particular processor (and it's SIMD dialect) is -march=native,
i.e. "-g -O2 -march=native".  For my testing (with my examples) on
AMD64 with Linux this produces about a 2X speedup with interpreted R.
But, if you go beyond that to hand coding your functions with C/C++ via
Rcpp, RcppEigen, etc. the speedups can be dramatic:
35-70X speedup from R code is routine in my experience.

Rodney