|
Run-Time Library Routines
OMP IN PARALLEL: May be called to determine if the section of code which is executing is parallel or not.
Format
|
int omp in parallel(void) |
- For FORTRAN, this function returns TRUE if is called from the dynamic extent of a region executing in parallel, and FALSE otherwise. For C/C++, it will return a non-zero integer if parallel and zero otherwise
OMP SET DYNAMIC: Enables or Disables dynamic adjustment( by the run time system) of the number of threads available for the execution of parallel regions.
Format |
int omp set dynamic(int dynamic threads) |
- Must be called from serial section of the program
- If dynamic threads evaluated to non-zero, then the mechanism is enabled, otherwise it is disabled
OMP GET DYNAMIC: Used to determine thread adjustment is enabled or not
Format |
int omp get dynamic(void) |
- For C/C++, non-zero will be returned if dynamic thread adjustment is enabled, and zero otherwise
- For FORTRAN, this function returns TRUE if dynamic thread adjustment is enabled and FALSE otherwise
|