次の方法で共有


3.1.8 omp_get_dynamic Function

 

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

The omp_get_dynamic function returns a nonzero value if dynamic adjustment of threads is enabled, and returns 0 otherwise. The format is as follows:

#include <omp.h>  
int omp_get_dynamic(void);  

If the implementation does not implement dynamic adjustment of the number of threads, this function always returns 0.

Cross References:

  • For a description of dynamic thread adjustment, see Section 3.1.7 on page 39.