From 3c40d9588f28fd15c77208d80412a1fab38166cd Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Thu, 4 May 2023 14:46:55 -0400 Subject: [PATCH] intel-oneapi-mkl: include mpi libs when using +cluster (#37386) --- var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py b/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py index 60bcae6e40..b6cb3c085a 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py @@ -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")