summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Berger <rberger@lanl.gov>2023-12-19 04:20:05 -0700
committerGitHub <noreply@github.com>2023-12-19 12:20:05 +0100
commit0fe338b5262cb90445d0c6a6f7169489879e0fff (patch)
tree7ce9bbf628b75aaf2e53b0356f541e932e46dea2
parent3dc02e55e673646089c34f40c8ac7c085de69197 (diff)
downloadspack-0fe338b5262cb90445d0c6a6f7169489879e0fff.tar.gz
spack-0fe338b5262cb90445d0c6a6f7169489879e0fff.tar.bz2
spack-0fe338b5262cb90445d0c6a6f7169489879e0fff.tar.xz
spack-0fe338b5262cb90445d0c6a6f7169489879e0fff.zip
legion: inject correct mpicc to embedded GASnet slingshot11 config (#41701)
-rw-r--r--var/spack/repos/builtin/packages/legion/package.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/legion/package.py b/var/spack/repos/builtin/packages/legion/package.py
index 47f1ab4ec9..152aac297f 100644
--- a/var/spack/repos/builtin/packages/legion/package.py
+++ b/var/spack/repos/builtin/packages/legion/package.py
@@ -75,6 +75,15 @@ class Legion(CMakePackage, ROCmPackage):
# https://github.com/spack/spack/issues/37232#issuecomment-1553376552
patch("hip-offload-arch.patch", when="@23.03.0 +rocm")
+ def patch(self):
+ if "network=gasnet conduit=ofi-slingshot11 ^cray-mpich+wrappers" in self.spec:
+ filter_file(
+ r"--with-mpi-cc=cc",
+ f"--with-mpi-cc={self.spec['mpi'].mpicc}",
+ "stanfordgasnet/gasnet/configs/config.ofi-slingshot11.release",
+ string=True,
+ )
+
# HIP specific
variant(
"hip_hijack",