R/blasctl.R

Defines functions omp_set_num_threads omp_get_max_threads omp_get_num_procs blas_set_num_threads blas_get_num_procs get_num_procs get_num_cores

Documented in blas_get_num_procs blas_set_num_threads get_num_cores get_num_procs omp_get_max_threads omp_get_num_procs omp_set_num_threads

get_num_cores <-
function()    .Call("get_num_cores",            PACKAGE="RhpcBLASctl")

get_num_procs <-
function()    .Call("get_num_procs",            PACKAGE="RhpcBLASctl")

blas_get_num_procs <-
function()    .Call("blas_get_num_procs",       PACKAGE="RhpcBLASctl")

blas_set_num_threads <-function(threads)
    invisible(.Call("blas_set_num_threads",
                    as.integer(threads),        PACKAGE="RhpcBLASctl"))

omp_get_num_procs <-
function()    .Call("Rhpc_omp_get_num_procs",   PACKAGE="RhpcBLASctl")

omp_get_max_threads <-
function()    .Call("Rhpc_omp_get_max_threads", PACKAGE="RhpcBLASctl")

omp_set_num_threads <- function(threads)
    invisible(.Call("Rhpc_omp_set_num_threads",
                    as.integer(threads),        PACKAGE="RhpcBLASctl"))

Try the RhpcBLASctl package in your browser

Any scripts or data that you put into this service are public.

RhpcBLASctl documentation built on Feb. 16, 2023, 5:23 p.m.