Hi,
I am trying to run a QR decomposition in R on a linux machine (CentOS) using a C++ program that is interfaced with Rcpp. Unfortunately, I see only 100% using top. The same happens on a Red Hat Enterprise Linux Server. However, the C++ program runs at nthreads * 100% when started from the terminal (independently outside of R). I compiled OpenBLAS with
'NO_AFFINITY=1'
and tried
'export OPENBLAS_NUM_THREADS' (GOTO_NUM_THREADS, OMP_NUM_THREADS)
'export OPENBLAS_MAIN_FREE'.
Nothing works. Everything works fine on a Mac though. 'mcaffinity()' from the parallel R package returns NULL. I configured R using
configure 'CFLAGS=-g -O3 -Wall -pedantic' 'CXXFLAGS=-g -O3 -Wall -pedantic' 'FCFLAGS=-g -O3' 'F77FLAGS=-g -O3' '--with-system-zlib' '--enable-memory-profiling'
I attached my C++ program and R script. Any help is highly appreciated.
Christian