omp: Get or Set the Number of Threads¶
Description¶
These functions get or set the maximal number of OpenMP threads that can be used by knn_euclid
and mst_euclid
, amongst others.
Usage¶
omp_set_num_threads(n_threads)
omp_get_max_threads()
Arguments¶
|
maximum number of threads to use |
Value¶
omp_get_max_threads
returns the maximal number of threads that will be used during the next call to a parallelised function, not the maximal number of threads possibly available. It there is no built-in support for OpenMP, 1 is always returned.
For omp_set_num_threads
, the previous value of max_threads
is returned.
See Also¶
The official online manual of quitefastmst at https://quitefastmst.gagolewski.com/