set.thread.count | R Documentation |
This methods allows you to set the number of cores currently accessible to openMP
set.thread.count(thread_count)
thread_count |
number of OPENMP threads to be used |
No return, sets the number of cores available to openMP for C level parallelization.
Nicolas De Jay, Simon Papillon-Cavanagh, Benjamin Haibe-Kains
# Access to number of available threads
threads <- get.thread.count()
# Force a single threaded openMP job
set.thread.count(1)
# Revert back to all accessible threads
set.thread.count(threads)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.