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