void omp_set_num_threads(int num_threads);
Summary The omp_set_num_threads routine affects the number of threads to be used for subsequent parallel regions that do not specify a num_threads clause, by setting the value of the first element of the nthreads-var ICV of the current task.
Constraints on Arguments The value of the argument passed to this routine must evaluate to a positive integer, or else the behavior of this routine is implementation defined.
Binding The binding task set for an omp_set_num_threads region is the generating task.
Effect The effect of this routine is to set the value of the first element of the nthreads-var ICV of the current task to the value specified in the argument.