RhpcBLASctl-package {RhpcBLASctl}R Documentation

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.

If you build R directly on Windows and the BLAS file name is not 'Rblas.dll', you can give it as 'options ("RhpcBLASctl.win.Rblas.name" = "boofoo.dll")'.

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

Author(s)

Junji NAKANO <nakanoj@ism.ac.jp> and Ei-ji Nakama<nakama@com-one.com> Maintainer: Ei-ji Nakama <nakama@com-one.com>

Examples

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)        

[Package RhpcBLASctl version 0.18-205 Index]