Files
pytorch/docs/source/threading_environment_variables.md

402 B

(threading_environment_variables)=

Threading Environment Variables

:header-rows: 1

* - Variable
  - Description
* - ``OMP_NUM_THREADS``
  - Sets the maximum number of threads to use for OpenMP parallel regions.
* - ``MKL_NUM_THREADS``
  - Sets the maximum number of threads to use for the Intel MKL library. Note that MKL_NUM_THREADS takes precedence over ``OMP_NUM_THREADS``.