intel-oneapi-mkl: handle external mkl with external mpi (#38263)

This commit is contained in:
Robert Cohn 2023-06-27 17:38:09 -04:00 committed by GitHub
parent 84043d97b7
commit e81076edd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,10 @@ def _find_mkl_libs(self, shared):
lib_path = lib_path if isdir(lib_path) else dirname(lib_path)
resolved_libs = find_libraries(libs, lib_path, shared=shared)
if "+cluster" in self.spec:
# 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 "+cluster" in self.spec and "mpi" in self.spec:
resolved_libs = resolved_libs + self.spec["mpi"].libs
return resolved_libs