OpenBLAS in R only single core in linux

168 views
Skip to first unread message

christia...@gmail.com

unread,
Feb 12, 2014, 8:33:28 AM2/12/14
to openbla...@googlegroups.com
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
QRopenblas.cpp
QRopenblas.R

christia...@gmail.com

unread,
Feb 13, 2014, 12:23:51 PM2/13/14
to openbla...@googlegroups.com
I figured it out myself. The answer is here.

Zhang Xianyi

unread,
Feb 14, 2014, 1:51:15 AM2/14/14
to christia...@gmail.com, openbla...@googlegroups.com
Thanks for your answer.


--
You received this message because you are subscribed to the Google Groups "OpenBLAS-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openblas-user...@googlegroups.com.
To post to this group, send email to openbla...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages