Rdocumentation
powered by
Learn R Programming
NScluster (version 1.1.0)
setOmpNumThreads: Set the Number of OpenMP Threads
Description
Set the number of threads used for parallel computation based on OpenMP.
Usage
setOmpNumThreads(nthreads=NULL)
Arguments
nthreads
the number of OpenMP threads. If
nthreads
is NULL or greater than the number of processors, it is set to the number as omp_get_num_procs().
Value
setOmpNumThreads
returns the maximum number of threads available.