lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #192906 from OPNA2608/fix/openblas-parallelism

authored by

Martin Weinelt and committed by
GitHub
249821f2 07b4f3d1

+6
+6
pkgs/development/libraries/science/math/openblas/default.nix
··· 179 179 buildPackages.stdenv.cc 180 180 ]; 181 181 182 + enableParallelBuilding = true; 183 + 182 184 makeFlags = mkMakeFlagsFromConfig (config // { 183 185 FC = "${stdenv.cc.targetPrefix}gfortran"; 184 186 CC = "${stdenv.cc.targetPrefix}${if stdenv.cc.isClang then "clang" else "cc"}"; ··· 196 198 NO_BINARY_MODE = if stdenv.isx86_64 197 199 then toString (stdenv.hostPlatform != stdenv.buildPlatform) 198 200 else stdenv.hostPlatform != stdenv.buildPlatform; 201 + # This disables automatic build job count detection (which honours neither enableParallelBuilding nor NIX_BUILD_CORES) 202 + # and uses the main make invocation's job count, falling back to 1 if no parallelism is used. 203 + # https://github.com/xianyi/OpenBLAS/blob/v0.3.20/getarch.c#L1781-L1792 204 + MAKE_NB_JOBS = 0; 199 205 } // (lib.optionalAttrs singleThreaded { 200 206 # As described on https://github.com/xianyi/OpenBLAS/wiki/Faq/4bded95e8dc8aadc70ce65267d1093ca7bdefc4c#multi-threaded 201 207 USE_THREAD = false;