python2Packages.numpy: fix openblas threads

This commit is contained in:
Jonathan Ringer 2020-11-17 09:09:59 -08:00 committed by Jonathan Ringer
parent 8f7cec2297
commit e949d75899

View file

@ -60,6 +60,7 @@ in buildPythonPackage rec {
preConfigure = '' preConfigure = ''
sed -i 's/-faltivec//' numpy/distutils/system_info.py sed -i 's/-faltivec//' numpy/distutils/system_info.py
export NPY_NUM_BUILD_JOBS=$NIX_BUILD_CORES export NPY_NUM_BUILD_JOBS=$NIX_BUILD_CORES
export OMP_NUM_THREADS=$((NIX_BUILD_CORES > 64 ? 64 : NIX_BUILD_CORES))
''; '';
preBuild = '' preBuild = ''