[Rd] linux multi-threaded compilation is running only on one processor
Vitaliy FEOKTISTOV
vitaliy.feoktistov at gmail.com
Fri Dec 28 11:23:00 CET 2012
Hello,
I compiled R-2.15.2 with linux intel compilers (see below).
when I execute some R code on a // 4 proc x 4 cores // server
(export MKL_NUM_THREADS = 16)
very often I have the situations where only one processor (4 cores) is
active instead of 4 (16 cores) !
do you know this fact depends on what ?
thank you !
P.S.
many functions of R are single-threaded,
is there a simple way to make them multi-threaded ?
=========================================================================================================
CMP_LIB_PATH=/opt/intel/lib/intel64
MKL_LIB_PATH=/opt/intel/composerxe/mkl/lib/intel64
INC_LIB_PATH=/usr/local/lib
export CC="icc -std=c99"
export CFLAGS="-g -O3 -wd188 -ip"
export F77=ifort
export FFLAGS="-g -O3"
export CXX=icpc
export CXXFLAGS="-g -O3"
export FC=ifort
export FCFLAGS="-g -O3"
export SHLIB_CXXLD=icpc
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MKL_LIB_PATH}:${INC_LIB_PATH}:${CMP_LIB_PATH}
export LDFLAGS="-L${MKL_LIB_PATH},-L${INC_LIB_PATH},-L${CMP_LIB_PATH},-Bdirect,--hash-style=both,-Wl,-O1"
export SHLIB_LDFLAGS="-lpthread"
export SHLIB_CXXLDFLAGS="-lpthread"
export MAIN_LDFLAGS="-lpthread"
MKL="-L${MKL_LIB_PATH} -L${INC_LIB_PATH} -lmkl_lapack95_lp64
-lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread"
./configure --prefix=${INSTALL_DIR} --enable-R-shlib
--with-blas="$MKL" --with-lapack
More information about the R-devel
mailing list