intel-oneapi-mkl: handle external mkl with external mpi (#38263)
This commit is contained in:
parent
84043d97b7
commit
e81076edd0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user