intel-oneapi-mkl: hpcx-mpi support (#39750)
This commit is contained in:
parent
04eae7316f
commit
2f63342677
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user