omp_set_num_threads

void omp_set_num_threads(int num_threads)
Sets the number of threads that will be used in subsequent parallel regions that do not specify a num_threads clause.


OpenMP API Index