python311Packages.openai-triton: use requested number of cores for build
This commit is contained in:
parent
1042fd8b14
commit
68f745d578
|
@ -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