OMP_TEAMS_THREAD_LIMIT (GNU libgomp)

### 4.18 `OMP_TEAMS_THREAD_LIMIT` – Set the maximum number of threads imposed by teams ¶

ICV: teams-thread-limit-var
Scope: device
Description:

  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.

See also:

  `OMP_THREAD_LIMIT` – Set the maximum number of threads, `omp_set_teams_thread_limit` – Set upper thread limit for teams construct

Reference:

  OpenMP specification v5.1, Section 6.24