Get Trilinos 12.6.2 to build with Intel compilers and spack (#2102)
Funded-by: IDEAS Project: IDEAS/xSDK Time: 2 hours
This commit is contained in:
parent
bf08bd7076
commit
eb36b2a622
@ -160,6 +160,14 @@ def install(self, spec, prefix):
|
|||||||
'ON' if '+hypre' in spec else 'OFF')
|
'ON' if '+hypre' in spec else 'OFF')
|
||||||
])
|
])
|
||||||
|
|
||||||
|
if spec.satisfies('%intel') and spec.satisfies('@12.6.2'):
|
||||||
|
# Panzer uses some std:chrono that is not recognized by Intel
|
||||||
|
# Don't know which (maybe all) Trilinos versions this applies to
|
||||||
|
# Don't know which (maybe all) Intel versions this applies to
|
||||||
|
options.extend([
|
||||||
|
'-DTrilinos_ENABLE_Panzer:BOOL=OFF'
|
||||||
|
])
|
||||||
|
|
||||||
if '+hdf5' in spec:
|
if '+hdf5' in spec:
|
||||||
options.extend([
|
options.extend([
|
||||||
'-DTPL_ENABLE_HDF5:BOOL=ON',
|
'-DTPL_ENABLE_HDF5:BOOL=ON',
|
||||||
@ -188,14 +196,15 @@ def install(self, spec, prefix):
|
|||||||
options.extend(['-DTPL_ENABLE_HDF5:BOOL=OFF'])
|
options.extend(['-DTPL_ENABLE_HDF5:BOOL=OFF'])
|
||||||
|
|
||||||
# Fortran lib
|
# Fortran lib
|
||||||
libgfortran = os.path.dirname(os.popen(
|
if spec.satisfies('%gcc') or spec.satisfies('%clang'):
|
||||||
'%s --print-file-name libgfortran.a' %
|
libgfortran = os.path.dirname(os.popen(
|
||||||
join_path(mpi_bin, 'mpif90')).read())
|
'%s --print-file-name libgfortran.a' %
|
||||||
options.extend([
|
join_path(mpi_bin, 'mpif90')).read())
|
||||||
'-DTrilinos_EXTRA_LINK_FLAGS:STRING=-L%s/ -lgfortran' % (
|
options.extend([
|
||||||
libgfortran),
|
'-DTrilinos_EXTRA_LINK_FLAGS:STRING=-L%s/ -lgfortran' % (
|
||||||
'-DTrilinos_ENABLE_Fortran=ON'
|
libgfortran),
|
||||||
])
|
'-DTrilinos_ENABLE_Fortran=ON'
|
||||||
|
])
|
||||||
|
|
||||||
# for build-debug only:
|
# for build-debug only:
|
||||||
# options.extend([
|
# options.extend([
|
||||||
|
Loading…
Reference in New Issue
Block a user