python2Packages.numpy: fix openblas threads
This commit is contained in:
committed by
Jonathan Ringer
parent
8f7cec2297
commit
e949d75899
@@ -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 = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user