fix suite-sparse built with tbb from intel-parallel-studio (#11134)
* fix suite-sparse built with tbb from intel-parallel-studio * intel: add tbb_headers, strip newline from cxx_lib * use property
This commit is contained in:
parent
5c021f5416
commit
9d34326992
@ -695,6 +695,13 @@ def _gcc_executable(self):
|
|||||||
debug_print(gcc_name)
|
debug_print(gcc_name)
|
||||||
return Executable(gcc_name)
|
return Executable(gcc_name)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def tbb_headers(self):
|
||||||
|
# Note: TBB is included as
|
||||||
|
# #include <tbb/task_scheduler_init.h>
|
||||||
|
return HeaderList([
|
||||||
|
self.component_include_dir('tbb') + '/dummy.h'])
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def tbb_libs(self):
|
def tbb_libs(self):
|
||||||
'''Supply LibraryList for linking TBB'''
|
'''Supply LibraryList for linking TBB'''
|
||||||
@ -710,7 +717,7 @@ def tbb_libs(self):
|
|||||||
cxx_lib_path = gcc(
|
cxx_lib_path = gcc(
|
||||||
'--print-file-name', 'libstdc++.%s' % dso_suffix, output=str)
|
'--print-file-name', 'libstdc++.%s' % dso_suffix, output=str)
|
||||||
|
|
||||||
libs = tbb_lib + LibraryList(cxx_lib_path)
|
libs = tbb_lib + LibraryList(cxx_lib_path.rstrip())
|
||||||
debug_print(libs)
|
debug_print(libs)
|
||||||
return libs
|
return libs
|
||||||
|
|
||||||
@ -941,6 +948,9 @@ def headers(self):
|
|||||||
['mkl_cblas', 'mkl_lapacke'],
|
['mkl_cblas', 'mkl_lapacke'],
|
||||||
root=self.component_include_dir('mkl'),
|
root=self.component_include_dir('mkl'),
|
||||||
recursive=False)
|
recursive=False)
|
||||||
|
if '+tbb' in self.spec or self.provides('tbb'):
|
||||||
|
result += self.tbb_headers
|
||||||
|
|
||||||
debug_print(result)
|
debug_print(result)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ def install(self, spec, prefix):
|
|||||||
if 'tbb' in spec:
|
if 'tbb' in spec:
|
||||||
make_args += [
|
make_args += [
|
||||||
'SPQR_CONFIG=-DHAVE_TBB',
|
'SPQR_CONFIG=-DHAVE_TBB',
|
||||||
'TBB=-L%s -ltbb' % spec['tbb'].prefix.lib,
|
'TBB=%s' % spec['tbb'].libs.ld_flags,
|
||||||
]
|
]
|
||||||
|
|
||||||
if '@5.3:' in spec:
|
if '@5.3:' in spec:
|
||||||
|
Loading…
Reference in New Issue
Block a user