Skip to content
Snippets Groups Projects
Commit 1e9748a3 authored by Denis Davydov's avatar Denis Davydov Committed by Massimiliano Culpo
Browse files

dealii: fix build with tbb from intel parallel studio (#11138)

parent b2611c80
No related branches found
No related tags found
No related merge requests found
...@@ -224,11 +224,23 @@ def cmake_args(self): ...@@ -224,11 +224,23 @@ def cmake_args(self):
lapack_blas_headers.directories), lapack_blas_headers.directories),
'-DLAPACK_LIBRARIES=%s' % lapack_blas_libs.joined(';'), '-DLAPACK_LIBRARIES=%s' % lapack_blas_libs.joined(';'),
'-DUMFPACK_DIR=%s' % spec['suite-sparse'].prefix, '-DUMFPACK_DIR=%s' % spec['suite-sparse'].prefix,
'-DTBB_DIR=%s' % spec['tbb'].prefix,
'-DZLIB_DIR=%s' % spec['zlib'].prefix, '-DZLIB_DIR=%s' % spec['zlib'].prefix,
'-DDEAL_II_ALLOW_BUNDLED=OFF' '-DDEAL_II_ALLOW_BUNDLED=OFF'
]) ])
if (spec.satisfies('^intel-parallel-studio+tbb')):
# deal.II/cmake will have hard time picking up TBB from Intel.
tbb_ver = '.'.join(('%s' % spec['tbb'].version).split('.')[1:])
options.extend([
'-DTBB_FOUND=true',
'-DTBB_VERSION=%s' % tbb_ver,
'-DTBB_INCLUDE_DIRS=%s' % ';'.join(
spec['tbb'].headers.directories),
'-DTBB_LIBRARIES=%s' % spec['tbb'].libs.joined(';')
])
else:
options.append('-DTBB_DIR=%s' % spec['tbb'].prefix)
if (spec.satisfies('^openblas+ilp64') or if (spec.satisfies('^openblas+ilp64') or
spec.satisfies('^intel-mkl+ilp64') or spec.satisfies('^intel-mkl+ilp64') or
spec.satisfies('^intel-parallel-studio+mkl+ilp64')): spec.satisfies('^intel-parallel-studio+mkl+ilp64')):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment