intel-oneapi-mkl: support gnu openmp (#37637)

* intel-oneapi-mkl: support gnu openmp

* intel-oneapi-mkl: support gnu openmp
This commit is contained in:
Robert Cohn 2023-05-12 12:03:19 -04:00 committed by GitHub
parent 0a4d4da5ce
commit f423edd526
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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:
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")