diff options
-rw-r--r-- | var/spack/repos/builtin/packages/py-jaxlib/package.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-jaxlib/package.py b/var/spack/repos/builtin/packages/py-jaxlib/package.py index 7d0c8b99da..d8def42008 100644 --- a/var/spack/repos/builtin/packages/py-jaxlib/package.py +++ b/var/spack/repos/builtin/packages/py-jaxlib/package.py @@ -51,6 +51,16 @@ class PyJaxlib(PythonPackage, CudaPackage): self.tmp_path = tempfile.mkdtemp(prefix="spack") self.buildtmp = tempfile.mkdtemp(prefix="spack") filter_file( + "build --spawn_strategy=standalone", + f""" +# Limit CPU workers to spack jobs instead of using all HOST_CPUS. +build --spawn_strategy=standalone +build --local_cpu_resources={make_jobs} +""".strip(), + ".bazelrc", + string=True, + ) + filter_file( 'f"--output_path={output_path}",', 'f"--output_path={output_path}",' f' "--sources_path={self.tmp_path}",' |