python2Packages.numpy: fix openblas threads
This commit is contained in:
parent
8f7cec2297
commit
e949d75899
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ in buildPythonPackage rec {
|
|||
preConfigure = ''
|
||||
sed -i 's/-faltivec//' numpy/distutils/system_info.py
|
||||
export NPY_NUM_BUILD_JOBS=$NIX_BUILD_CORES
|
||||
export OMP_NUM_THREADS=$((NIX_BUILD_CORES > 64 ? 64 : NIX_BUILD_CORES))
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
|
|
Loading…
Reference in a new issue