summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBarry Smith <bsmith@mcs.anl.gov>2016-10-26 23:52:29 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2016-10-26 21:52:29 -0700
commiteb36b2a6221ad8b93058982fac221656291e553d (patch)
tree0b21c921360e96bc92aa46e173643be8802e9fec /var
parentbf08bd707678038b27e1738040c1c5ef7dc9983c (diff)
downloadspack-eb36b2a6221ad8b93058982fac221656291e553d.tar.gz
spack-eb36b2a6221ad8b93058982fac221656291e553d.tar.bz2
spack-eb36b2a6221ad8b93058982fac221656291e553d.tar.xz
spack-eb36b2a6221ad8b93058982fac221656291e553d.zip
Get Trilinos 12.6.2 to build with Intel compilers and spack (#2102)
Funded-by: IDEAS Project: IDEAS/xSDK Time: 2 hours
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py25
1 files changed, 17 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index 4c7a94ce3f..4eb50ba64d 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -160,6 +160,14 @@ class Trilinos(Package):
'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:
options.extend([
'-DTPL_ENABLE_HDF5:BOOL=ON',
@@ -188,14 +196,15 @@ class Trilinos(Package):
options.extend(['-DTPL_ENABLE_HDF5:BOOL=OFF'])
# Fortran lib
- libgfortran = os.path.dirname(os.popen(
- '%s --print-file-name libgfortran.a' %
- join_path(mpi_bin, 'mpif90')).read())
- options.extend([
- '-DTrilinos_EXTRA_LINK_FLAGS:STRING=-L%s/ -lgfortran' % (
- libgfortran),
- '-DTrilinos_ENABLE_Fortran=ON'
- ])
+ if spec.satisfies('%gcc') or spec.satisfies('%clang'):
+ libgfortran = os.path.dirname(os.popen(
+ '%s --print-file-name libgfortran.a' %
+ join_path(mpi_bin, 'mpif90')).read())
+ options.extend([
+ '-DTrilinos_EXTRA_LINK_FLAGS:STRING=-L%s/ -lgfortran' % (
+ libgfortran),
+ '-DTrilinos_ENABLE_Fortran=ON'
+ ])
# for build-debug only:
# options.extend([