<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi Everyone,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I'm having trouble with restricting the Armadillo function "svd_econ" to run on a single thread.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">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).</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I'm wondering if theirs an option native to armadillo/RcppArmadillo that I'm missing to enable me to:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><ul><li style="margin-left:15px">Restrict the number of threads used to 1</li><li style="margin-left:15px">In a library agnostic manner (i.e. if the user has a different LAPACK or BLAS library installed).</li>
</ul><div>or if I can "trick" Rcpp into thinking the machine only has 1 core?</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
Regards,</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Scott Ritchie</div></div>