9.11. Environment variables

This section explains the OpenMP C and C++ API environment variables that control the execution of parallel code. The names of environment variables must be uppercase. The values assigned to them are case insensitive and may have leading and trailing white space. Modifications to the values after the program has started are ignored. The environment variables are as follows:

OMP_SCHEDULESets the run-time schedule type and chunk size.
OMP_NUM_THREADSSets the number of threads to use during execution.
OMP_DYNAMICEnables or disables dynamic adjustment of the number of threads.
OMP_NESTEDEnables or disables nested parallelism.

For further information about these environment variables, please refer to the “Parallel Processing ...

Get Developing and Porting C and C++ Applications on AIX now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.