OpenMP Functions

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

Provides links to functions used in the OpenMP API.

The Visual C++ implementation of the OpenMP standard includes the following functions.

FunctionDescription
omp_destroy_lockUninitializes a lock.
omp_destroy_nest_lockUninitializes a nestable lock.
omp_get_dynamicReturns a value that indicates if the number of threads available in subsequent parallel region can be adjusted by the run time.
omp_get_max_threadsReturns an integer that is equal to or greater than the number of threads that would be available if a parallel region without num_threads were defined at that point in the code.
omp_get_nestedReturns a value that indicates if nested parallelism is enabled.
omp_get_num_procsReturns the number of processors that are available when the function is called.
omp_get_num_threadsReturns the number of threads in the parallel region.
omp_get_thread_numReturns the thread number of the thread executing within its thread team.
omp_get_wtickReturns the number of seconds between processor clock ticks.
omp_get_wtimeReturns a value in seconds of the time elapsed from some point.
omp_in_parallelReturns nonzero if called from within a parallel region.
omp_init_lockInitializes a simple lock.
omp_init_nest_lockInitializes a lock.
omp_set_dynamicIndicates that the number of threads available in subsequent parallel region can be adjusted by the run time.
omp_set_lockBlocks thread execution until a lock is available.
omp_set_nest_lockBlocks thread execution until a lock is available.
omp_set_nestedEnables nested parallelism.
omp_set_num_threadsSets the number of threads in subsequent parallel regions, unless overridden by a num_threads clause.
omp_test_lockAttempts to set a lock but does not block thread execution.
omp_test_nest_lockAttempts to set a nestable lock but does not block thread execution.
omp_unset_lockReleases a lock.
omp_unset_nest_lockReleases a nestable lock.

Library Reference

Show: