get_num_threads: Get the number of threads for 'cpgen'

Description Usage Value See Also Examples

Description

Check the variable that specifies the number of threads being used by cpgen-functions

Usage

1

Value

Returns the value of the global variable cpgen.threads

See Also

set_num_threads, get_max_threads, check_openmp

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# set the number of threads to 1
set_num_threads(1)

# check
get_num_threads()

# set number of threads to the value reported by get_max_threads()
n_threads <- get_max_threads()
set_num_threads(n_threads)

# check
get_num_threads()


Search within the cpgen package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.