omp: Set or get the number of OpenMP threads 'Delaporte' should...

setDelapThreadsR Documentation

Set or get the number of OpenMP threads Delaporte should use

Description

Set or get number OpenMP threads to be used by Delaporte functions which are parallelized. These include ddelap, pdelap, qdelap, and rdelap.

Usage

setDelapThreads(n)
getDelapThreads()

Arguments

n

integer: maximum number of threads to be used.

Details

For systems which return valid values for detectCores, the maximum number of threads will be capped at that value.

Value

getDelapThreads returns an integer representing the maximum number of allowed threads.

setDelapThreads invisibly returns the integer passed to it.

Author(s)

Avraham Adler Avraham.Adler@gmail.com

See Also

detectCores in parallel package.

Examples

getDelapThreads()
setDelapThreads(2L)
getDelapThreads()

Delaporte documentation built on Oct. 3, 2023, 1:06 a.m.