diff options
-rw-r--r-- | var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
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 7ab0750161..0039de5c54 100644 --- a/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py +++ b/var/spack/repos/builtin/packages/intel-oneapi-mkl/package.py @@ -167,7 +167,10 @@ class IntelOneapiMkl(IntelOneApiLibraryPackage): if "threads=tbb" in self.spec: libs.append("libmkl_tbb_thread") elif "threads=openmp" in self.spec: - libs.append("libmkl_intel_thread") + if self.spec.satisfies("%oneapi") or self.spec.satisfies("%intel"): + libs.append("libmkl_intel_thread") + else: + libs.append("libmkl_gnu_thread") else: libs.append("libmkl_sequential") |