OMP_TEAMS_THREAD_LIMIT
– Set the maximum number of threads imposed by teams ¶Specifies an upper bound for the number of threads to use by each contention
group created by a teams construct without explicit thread_limit
clause. The value of this variable shall be a positive integer. If undefined,
the value of 0 is used which stands for an implementation defined upper
limit.
OMP_THREAD_LIMIT
– Set the maximum number of threads, omp_set_teams_thread_limit
– Set upper thread limit for teams construct
OpenMP specification v5.1, Section 6.24