Learn R Programming

RcppML (version 0.3.7)

getRcppMLthreads: Get the number of threads RcppML should use

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

getRcppMLthreads()

Arguments

Value

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

See Also

setRcppMLthreads

Examples

Run this code
# NOT RUN {
# set serial configuration
setRcppMLthreads(1)
getRcppMLthreads()

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

Run the code above in your browser using DataLab