Description Usage Arguments Details Value
Get or set the number of threads for OpenMP
1 2 3 |
num |
New number of threads for OpenMP |
Some functions in mpMap2 are parallelised. Depending on the number of cores available, and the type of workload, it may be advantageous to turn parallelisation on or off, by setting the number of OpenMP threads appropriately. Setting the number of threads to 1 turns parallelisation off
In particular, for small examples on a computer with a large number of threads, parallelisation may result in a huge decrease in performance.
This function returns an error if the package was not compiled with OpenMP.
None
The number of threads for OpenMP
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.