mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
Merge pull request #305120 from RuRo/fix-triton-max-jobs
python311Packages.openai-triton: use requested number of cores for build
This commit is contained in:
commit
33156229e2
@ -115,6 +115,9 @@ buildPythonPackage rec {
|
||||
|
||||
# Avoid GLIBCXX mismatch with other cuda-enabled python packages
|
||||
preConfigure = ''
|
||||
# Ensure that the build process uses the requested number of cores
|
||||
export MAX_JOBS="$NIX_BUILD_CORES"
|
||||
|
||||
# Upstream's setup.py tries to write cache somewhere in ~/
|
||||
export HOME=$(mktemp -d)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user