RhpcBLASctl-package: Control the number of threads on BLAS

Description Usage Arguments Details Value Author(s) Examples

Description

Control the number of threads on 'BLAS' (Aka 'GotoBLAS', 'ACML' and 'MKL').

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")'.

openmp-related functions only work at build-time instructions. Omp_get * now returns NA_Integer if R was not built with openmp instructions. NOTE: if R itself is built without OpenMP instructions and BLAS thread is used with OpenMP, this package will not work...XD

Usage

1
2
3
4
5
6
7

Arguments

threads

Number of threads

Details

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

Value

get_num_cores

Number of CPU physical processor. NOTE:Returns 1L if unknown

get_num_procs

Number of CPU logical processor. NOTE:Returns 1L if unknown

blas_get_num_procs

Number of available cores for the optimized BLAS. NOTE:Returns 1L if unknown

omp_get_num_procs

Result from OpenMP's omp_get_num_procs function. NOTE Returns NA_integer_ if unknown

omp_get_max_threads

Result from OpenMP's omp_get_max_threads function. NOTE Returns NA_integer_ if unknown

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

1
2
3
4
5
6
7

Example output

[1] 1
[1] 1
[1] 1
[1] 1
[1] 1

RhpcBLASctl documentation built on July 2, 2020, 3:17 a.m.