From 7ecaeba33a4fe559f6122953581e533720cb2404 Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Fri, 26 Mar 2021 17:16:06 -0400 Subject: [PATCH] Add select mkl libs (#22580) --- .../repos/builtin/packages/intel-oneapi-mkl/package.py | 6 ++++++ 1 file changed, 6 insertions(+) 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 7f2bec21bd..fff8432ccb 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py @@ -33,3 +33,9 @@ class IntelOneapiMkl(IntelOneApiLibraryPackage): @property def component_dir(self): return 'mkl' + + @property + def libs(self): + lib_path = '{0}/{1}/latest/lib/intel64'.format(self.prefix, self.component_dir) + mkl_libs = ['libmkl_intel_ilp64', 'libmkl_sequential', 'libmkl_core'] + return find_libraries(mkl_libs, root=lib_path, shared=True, recursive=False)