intel-oneapi-mkl: hpcx-mpi support (#39750)

This commit is contained in:
Robert Cohn 2023-09-11 09:47:52 -04:00 committed by GitHub
parent 04eae7316f
commit 2f63342677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,9 +220,14 @@ def _find_mkl_libs(self, shared):
resolved_libs = find_libraries(libs, lib_path, shared=shared)
# Add MPI libraries for cluster support. If MPI is not in the
# spec, then MKL is externally installed and application must
# link with MPI libaries
if self.spec.satisfies("+cluster ^mpi"):
resolved_libs = resolved_libs + self.spec["mpi"].libs
# link with MPI libaries. If MPI is in spec, but there are no
# libraries, then the package (e.g. hpcx-mpi) relies on the
# compiler wrapper to add the libraries.
try:
if self.spec.satisfies("+cluster ^mpi"):
resolved_libs = resolved_libs + self.spec["mpi"].libs
except spack.error.NoLibrariesError:
pass
return resolved_libs
def _xlp64_lib(self, lib):