Prev | Next | omp_max_num_threads |
# include <cppad/utility/omp_alloc.hpp>
omp_alloc::set_max_num_threads(number)
number = omp_alloc::get_max_num_threads()
number
has prototype
size_t number
and must be greater than zero.
set_max_num_threads
.
If there was no such previous call, the value one is returned
(and only thread number zero can use omp_alloc
).
set_max_num_threads
must be called before
the program enters parallel
execution mode.
In addition, this function cannot be called while in parallel mode.