OMP_THREAD_LIMIT (GNU libgomp)

### 4.19 `OMP_THREAD_LIMIT` – Set the maximum number of threads ¶

ICV: thread-limit-var
Scope: data environment
Description:

  Specifies the number of threads to use for the whole program. The value of this variable shall be a positive integer. If undefined, the number of threads is not limited.

See also:

  `OMP_NUM_THREADS` – Specifies the number of threads to use, `omp_get_thread_limit` – Maximum number of threads

Reference:

  OpenMP specification v4.5, Section 4.10