HOME
| OPENMP API Specification: Version 5.1 November 2020

6.24  OMP_TEAMS_THREAD_LIMIT

The OMP_TEAMS_THREAD_LIMIT environment variable sets the maximum number of OpenMP threads to use in each contention group created by a teams construct by setting the teams-thread-limit-var ICV.

The value of this environment variable must be a positive integer. The behavior of the program is implementation defined if the requested value of OMP_TEAMS_THREAD_LIMIT is greater than the number of threads that an implementation can support, or if the value is not a positive integer.

Cross References