Learn R Programming

RhpcBLASctl (version 0.18-12)

RhpcBLASctl-package: Control the number of threads on BLAS

Description

Control the number of threads on 'BLAS' (Aka 'GotoBLAS', 'ACML' and 'MKL'). -- 'GotoBLAS(generic)' binary for Windows i386 http://prs.ism.ac.jp/~nakama/Survive GotoBLAS2/binary/windows/x86/KATMAI/Rblas.dll 'GotoBLAS(generic)' binary for Windows x64 http://prs.ism.ac.jp/~nakama/SurviveG otoBLAS2/binary/windows/x64/PRESCOTT/Rblas.dll

get_num_cores is number of physical cores returned, when feasible. get_num_procs is number of logical processor returned.

Usage

get_num_cores()
get_num_procs()
blas_get_num_procs()
blas_set_num_threads(threads)
omp_get_num_procs()
omp_get_max_threads()
omp_set_num_threads(threads)

Arguments

threads

Number of threads

Details

http://prs.ism.ac.jp/~nakama/Rhpc

Examples

Run this code
# NOT RUN {
get_num_cores()
get_num_procs()
blas_get_num_procs()
blas_set_num_threads(2)
omp_get_num_procs()
omp_get_max_threads()
omp_set_num_threads(2)        
# }

Run the code above in your browser using DataLab