Merge pull request #193691 from mweinelt/scipy-limit-omp-threads

This commit is contained in:
Martin Weinelt
2022-10-03 19:01:25 +02:00
committed by GitHub
@@ -54,6 +54,7 @@ buildPythonPackage rec {
checkPhase = ''
runHook preCheck
pushd "$out"
export OMP_NUM_THREADS=$(( $NIX_BUILD_CORES / 4 ))
${python.interpreter} -c "import scipy; scipy.test('fast', verbose=10, parallel=$NIX_BUILD_CORES)"
popd
runHook postCheck