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