getRcppMLthreads: Get the number of threads RcppML should use

Description Usage Value Author(s) See Also Examples

View source: R/threads.R

Description

Get the number of threads that will be used by RcppML functions supporting parallelization with OpenMP. Use setRcppMLthreads to set the number of threads to be used.

Usage

1

Value

integer giving number of threads to be used by RcppML functions. 0 corresponds to all available threads, as determined by OpenMP.

Author(s)

Zach DeBruine

See Also

setRcppMLthreads

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# set serial configuration
setRcppMLthreads(1)
getRcppMLthreads()

# restore default parallel configuration, 
# letting OpenMP decide how many threads to use
setRcppMLthreads(0)
getRcppMLthreads()

## End(Not run)

RcppML documentation built on Sept. 22, 2021, 1:06 a.m.