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
_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to