Description Usage Value See Also Examples
Check the variable that specifies the number of threads being used by cgenpp
-functions
1 |
Returns the value of the global variable cgenpp.threads
set_num_threads, get_max_threads, check_openmp
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()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.