다음을 통해 공유


omp_set_num_threads

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

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

Syntax

void omp_set_num_threads(  
   int num_threads  
);  

Remarks

where,

num_threads
The number of threads in the parallel region.

Remarks

For more information, see 3.1.1 omp_set_num_threads Function.

Example

See omp_get_num_threads for an example of using omp_set_num_threads.

See Also

Functions