intel-mkl: fix usage of openmp_libs and tbb_libs (#9863)
* intel-mkl: fix usage of openmp_libs and tbb_libs * intel-mkl: remove trailing whitespace from openmp lib
This commit is contained in:
parent
0a57f90d75
commit
abd7b185f7
@ -674,7 +674,7 @@ def openmp_libs(self):
|
|||||||
gcc = Executable(self.compiler.cc)
|
gcc = Executable(self.compiler.cc)
|
||||||
omp_lib_path = gcc(
|
omp_lib_path = gcc(
|
||||||
'--print-file-name', 'libgomp.%s' % dso_suffix, output=str)
|
'--print-file-name', 'libgomp.%s' % dso_suffix, output=str)
|
||||||
omp_libs = LibraryList(omp_lib_path)
|
omp_libs = LibraryList(omp_lib_path.strip())
|
||||||
|
|
||||||
if len(omp_libs) < 1:
|
if len(omp_libs) < 1:
|
||||||
raise_lib_error('Cannot locate OpenMP libraries:', omp_libnames)
|
raise_lib_error('Cannot locate OpenMP libraries:', omp_libnames)
|
||||||
@ -741,10 +741,10 @@ def blas_libs(self):
|
|||||||
mkl_threading = 'libmkl_intel_thread'
|
mkl_threading = 'libmkl_intel_thread'
|
||||||
elif '%gcc' in self.spec:
|
elif '%gcc' in self.spec:
|
||||||
mkl_threading = 'libmkl_gnu_thread'
|
mkl_threading = 'libmkl_gnu_thread'
|
||||||
threading_engine_libs = self.openmp_libs()
|
threading_engine_libs = self.openmp_libs
|
||||||
elif self.spec.satisfies('threads=tbb'):
|
elif self.spec.satisfies('threads=tbb'):
|
||||||
mkl_threading = 'libmkl_tbb_thread'
|
mkl_threading = 'libmkl_tbb_thread'
|
||||||
threading_engine_libs = self.tbb_libs()
|
threading_engine_libs = self.tbb_libs
|
||||||
elif self.spec.satisfies('threads=none'):
|
elif self.spec.satisfies('threads=none'):
|
||||||
mkl_threading = 'libmkl_sequential'
|
mkl_threading = 'libmkl_sequential'
|
||||||
threading_engine_libs = LibraryList([])
|
threading_engine_libs = LibraryList([])
|
||||||
|
Loading…
Reference in New Issue
Block a user