legion: inject correct mpicc to embedded GASnet slingshot11 config (#41701)

This commit is contained in:
Richard Berger 2023-12-19 04:20:05 -07:00 committed by GitHub
parent 3dc02e55e6
commit 0fe338b526
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",