intel-oneapi-mkl: support for cray mpich (#38725)

This commit is contained in:
Robert Cohn 2023-07-05 03:20:19 -04:00 committed by GitHub
parent a99b7886e9
commit fa73b14247
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,10 @@ def _find_mkl_libs(self, shared):
libs.append("libmkl_core") libs.append("libmkl_core")
if self.spec.satisfies("+cluster"): if self.spec.satisfies("+cluster"):
if any(self.spec.satisfies(m) for m in ["^intel-oneapi-mpi", "^intel-mpi", "^mpich"]): if any(
self.spec.satisfies(m)
for m in ["^intel-oneapi-mpi", "^intel-mpi", "^mpich", "^cray-mpich"]
):
libs.append(self._xlp64_lib("libmkl_blacs_intelmpi")) libs.append(self._xlp64_lib("libmkl_blacs_intelmpi"))
elif self.spec.satisfies("^openmpi"): elif self.spec.satisfies("^openmpi"):
libs.append(self._xlp64_lib("libmkl_blacs_openmpi")) libs.append(self._xlp64_lib("libmkl_blacs_openmpi"))