mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 18:24:53 +00:00
1.6 KiB
1.6 KiB
checkPhaseThreadLimitHook
This hook defaults a variety of environment variables known
to control thread counts to 1. Many of these otherwise default
to $(nproc), which causes massive overloads on build machines
if nix build jobs and build cores are already tuned to fully utilize
compute capacity of a builder without additional parallelism.
Currently sets the following environment variables:
OMP_NUM_THREADSOPENBLAS_NUM_THREADSMKL_NUM_THREADSBLIS_NUM_THREADSVECLIB_MAXIMUM_THREADS: Only affects darwin, seeman 7 AccelerateNUMBA_NUM_THREADSNUMEXPR_NUM_THREADS
The NIX_CHECK_PHASE_DEFAULT_NUM_THREADS environment variable
can be used to override the default thread count limit.
dontLimitCheckPhaseThreads = true; can be used to disable
thread limiting on an individual package.
This hook will not attempt to override already existing definitions for thread count environment variables.