mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Fixes #155035 Pull Request resolved: https://github.com/pytorch/pytorch/pull/155523 Approved by: https://github.com/AlannaBurke, https://github.com/svekars
402 B
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``.