Description Usage Arguments Author(s) Examples
View source: R/omp_set_num_threads.R
Sets the number of OpenMP threads to be used. This may be useful, for example, when linking against a vendor optimised BLAS/LAPACK library (e.g. the AMD Core Math Library), since the defaults used by those libraries may not be highly performant.
1 |
n |
Integer, number of threads |
The R interface was written by Simon Guest.
1 2 3 4 5 6 7 | omp_set_num_threads(2)
# do something requiring 2 OMP threads
omp_set_num_threads(4)
# do something else requiring 4 OMP threads
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.