Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

omp_set_num_threads

Sets the number of threads in subsequent parallel regions, unless overridden by a num_threads clause.

void omp_set_num_threads(
   int num_threads
);

where,

num_threads

The number of threads in the parallel region.

See omp_get_num_threads for an example of using omp_set_num_threads.

Show:
© 2015 Microsoft