Specify the number of threads to use.
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.
Parameters: num_threads (a positive
int) – The number of threads. Must be positive.