parent
c3fb998414
commit
c08f9fd6fc
1 changed files with 10 additions and 0 deletions
|
@ -50,6 +50,16 @@ class PyJaxlib(PythonPackage, CudaPackage):
|
|||
def patch(self):
|
||||
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}",'
|
||||
|
|
Loading…
Reference in a new issue