intel-oneapi-mkl: include mpi libs when using +cluster (#37386)

This commit is contained in:
Robert Cohn 2023-05-04 14:46:55 -04:00 committed by GitHub
parent 16613408e4
commit 3c40d9588f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,7 +163,10 @@ def _find_mkl_libs(self, shared):
lib_path = self.component_prefix.lib.intel64
lib_path = lib_path if isdir(lib_path) else dirname(lib_path)
return find_libraries(libs, lib_path, shared=shared)
resolved_libs = find_libraries(libs, lib_path, shared=shared)
if "+cluster" in self.spec:
resolved_libs = resolved_libs + self.spec["mpi"].libs
return resolved_libs
def _xlp64_lib(self, lib):
return lib + ("_ilp64" if "+ilp64" in self.spec else "_lp64")