intel-oneapi-mkl: support gnu openmp (#37637)
* intel-oneapi-mkl: support gnu openmp * intel-oneapi-mkl: support gnu openmp
This commit is contained in:
parent
0a4d4da5ce
commit
f423edd526
1 changed files with 4 additions and 1 deletions
|
@ -167,7 +167,10 @@ def _find_mkl_libs(self, shared):
|
|||
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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue