legion: inject correct mpicc to embedded GASnet slingshot11 config (#41701)
This commit is contained in:
parent
3dc02e55e6
commit
0fe338b526
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user