Displaying 2 results from an estimated 2 matches for "blas_get_num_proc".
Did you mean:
blas_get_num_procs
2016 Aug 04
1
R, OpenBLAS and OMP_NUM_THREADS
...ould be best
local({
if(require("RhpcBLASctl", quietly=TRUE)){
if(Sys.getenv("OPENBLAS_NUM_THREADS")=="" &
Sys.getenv("OMP_NUM_THREADS")=="")
blas_set_num_threads(1)
}
})
$ OMP_NUM_THREADS=4 R -q -e 'library(RhpcBLASctl);blas_get_num_procs()'
> library(RhpcBLASctl);blas_get_num_procs()
[1] 4
maybe confusion would be minimal.
> I was just working on something that needed environment variables (for
> automating tests to a database backend) and populating
>
> /etc/R/Renviron.site
>
> worked for me. Otherwi...
2016 Aug 03
2
R, OpenBLAS and OMP_NUM_THREADS
On 02/08/16 03:10, Ei-ji Nakama wrote:
> Hi,
>
> Create /etc/profile.d/openblas.sh.
> Write the following during in this file.
> OPENBLAS_NUM_THREADS = 1
> export OPENBLAS_NUM_THREADS
>
> OPENBLAS_NUM_THREADS environment variable does not affect the OMP_NUM_THREADS.
>
Thanks for the response.
This works fine for R run from the command line (as does setting the
same