[Rcpp-devel] RcppArmadillo BLAS/LAPACK force number of threads to 1
Scott Ritchie
sritchie73 at gmail.com
Tue Aug 12 00:43:14 CEST 2014
Hi Everyone,
I'm having trouble with restricting the Armadillo function "svd_econ" to
run on a single thread.
I am able to restrict it if I `export OPENBLAS_NUM_THREADS=1` before
opening an R session, but not from within R
(`Sys.setenv(OPENBLAS_NUM_THREADS=1)` has no effect).
I'm wondering if theirs an option native to armadillo/RcppArmadillo that
I'm missing to enable me to:
- Restrict the number of threads used to 1
- In a library agnostic manner (i.e. if the user has a different LAPACK
or BLAS library installed).
or if I can "trick" Rcpp into thinking the machine only has 1 core?
Regards,
Scott Ritchie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140812/fb512525/attachment.html>
More information about the Rcpp-devel
mailing list