summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAndrey Prokopenko <andrey.prok@gmail.com>2018-05-07 07:45:49 -0400
committerAdam J. Stewart <ajstewart426@gmail.com>2018-05-07 06:45:49 -0500
commit231664e22cfcc6f72fcd9d67b718d6723fdb29b2 (patch)
treebc1d30fbf10a2a7484bf72bc80692aa19c3b1edf /var
parentdf575382ba21b9338bb6a0565b759e5df01631ef (diff)
downloadspack-231664e22cfcc6f72fcd9d67b718d6723fdb29b2.tar.gz
spack-231664e22cfcc6f72fcd9d67b718d6723fdb29b2.tar.bz2
spack-231664e22cfcc6f72fcd9d67b718d6723fdb29b2.tar.xz
spack-231664e22cfcc6f72fcd9d67b718d6723fdb29b2.zip
trilinos: minor cleanup (#7987)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trilinos/package.py211
1 files changed, 115 insertions, 96 deletions
diff --git a/var/spack/repos/builtin/packages/trilinos/package.py b/var/spack/repos/builtin/packages/trilinos/package.py
index b199df50cc..7b36aa19ab 100644
--- a/var/spack/repos/builtin/packages/trilinos/package.py
+++ b/var/spack/repos/builtin/packages/trilinos/package.py
@@ -72,100 +72,111 @@ class Trilinos(CMakePackage):
# ###################### Variants ##########################
- variant('alloptpkgs', default=False,
- description='Compile with all optional packages')
- variant('xsdkflags', default=False,
- description='Compile using the default xSDK configuration')
- variant('metis', default=True,
- description='Compile with METIS and ParMETIS')
- variant('mumps', default=True,
- description='Compile with support for MUMPS solvers')
- variant('superlu-dist', default=True,
- description='Compile with SuperluDist solvers')
- variant('superlu', default=False,
- description='Compile with SuperLU solvers')
- variant('hypre', default=True,
- description='Compile with Hypre preconditioner')
- variant('hdf5', default=True,
- description='Compile with HDF5')
- variant('suite-sparse', default=True,
- description='Compile with SuiteSparse solvers')
+ # Other
# not everyone has py-numpy activated, keep it disabled by default to avoid
# configure errors
variant('python', default=False,
description='Build python wrappers')
+
+ # Build options
+ variant('fortran', default=True,
+ description='Compile with Fortran support')
+ variant('instantiate', default=True,
+ description='Compile with explicit instantiation')
+ variant('instantiate_cmplx', default=False,
+ description='Compile with explicit instantiation for complex')
+ variant('openmp', default=False,
+ description='Enable OpenMP')
variant('shared', default=True,
description='Enables the build of shared libraries')
+ variant('xsdkflags', default=False,
+ description='Compile using the default xSDK configuration')
+
+ # TPLs (alphabet order)
variant('boost', default=True,
description='Compile with Boost')
- variant('tpetra', default=True,
- description='Compile with Tpetra')
- variant('epetra', default=True,
- description='Compile with Epetra')
- variant('epetraext', default=True,
- description='Compile with EpetraExt')
+ variant('cgns', default=False,
+ description='Enable CGNS')
variant('exodus', default=True,
description='Compile with Exodus from SEACAS')
+ variant('gtest', default=True,
+ description='Compile with Gtest')
+ variant('hdf5', default=True,
+ description='Compile with HDF5')
+ variant('hypre', default=True,
+ description='Compile with Hypre preconditioner')
+ variant('metis', default=True,
+ description='Compile with METIS and ParMETIS')
+ variant('mumps', default=True,
+ description='Compile with support for MUMPS solvers')
variant('pnetcdf', default=False,
description='Compile with parallel-netcdf')
+ variant('suite-sparse', default=True,
+ description='Compile with SuiteSparse solvers')
+ variant('superlu-dist', default=True,
+ description='Compile with SuperluDist solvers')
+ variant('superlu', default=False,
+ description='Compile with SuperLU solvers')
+ variant('x11', default=False,
+ description='Compile with X11')
variant('zlib', default=False,
description='Compile with zlib')
- variant('stk', default=False,
- description='Compile with STK')
- variant('teuchos', default=True,
- description='Compile with Teuchos')
- variant('belos', default=True,
- description='Compile with Belos')
- variant('zoltan', default=True,
- description='Compile with Zoltan')
- variant('zoltan2', default=True,
- description='Compile with Zoltan2')
+
+ # Package options (alphabet order)
+ variant('alloptpkgs', default=False,
+ description='Compile with all optional packages')
variant('amesos', default=True,
description='Compile with Amesos')
variant('amesos2', default=True,
description='Compile with Amesos2')
variant('anasazi', default=True,
description='Compile with Anasazi')
+ variant('aztec', default=True,
+ description='Compile with Aztec')
+ variant('belos', default=True,
+ description='Compile with Belos')
+ variant('epetra', default=True,
+ description='Compile with Epetra')
+ variant('epetraext', default=True,
+ description='Compile with EpetraExt')
variant('ifpack', default=True,
description='Compile with Ifpack')
variant('ifpack2', default=True,
description='Compile with Ifpack2')
- variant('muelu', default=True,
- description='Compile with Muelu')
- variant('fortran', default=True,
- description='Compile with Fortran support')
+ variant('intrepid', default=False,
+ description='Enable Intrepid')
+ variant('intrepid2', default=False,
+ description='Enable Intrepid2')
+ variant('kokkos', default=True,
+ description='Compile with Kokkos')
variant('ml', default=True,
description='Compile with ML')
- variant('gtest', default=True,
- description='Compile with Gtest')
- variant('aztec', default=True,
- description='Compile with Aztec')
+ variant('muelu', default=True,
+ description='Compile with Muelu')
+ variant('nox', default=False,
+ description='Enable NOX')
+ variant('rol', default=False,
+ description='Enable ROL')
variant('sacado', default=True,
description='Compile with Sacado')
- variant('x11', default=False,
- description='Compile with X11')
- variant('instantiate', default=True,
- description='Compile with explicit instantiation')
- variant('instantiate_cmplx', default=False,
- description='Compile with explicit instantiation for complex')
+ variant('stk', default=False,
+ description='Compile with STK')
+ variant('shards', default=False,
+ description='Enable Shards')
+ variant('teuchos', default=True,
+ description='Compile with Teuchos')
+ variant('tpetra', default=True,
+ description='Compile with Tpetra')
+ variant('zoltan', default=True,
+ description='Compile with Zoltan')
+ variant('zoltan2', default=True,
+ description='Compile with Zoltan2')
+
+ # External package options
variant('dtk', default=False,
description='Enable DataTransferKit')
variant('fortrilinos', default=False,
description='Enable ForTrilinos')
- variant('openmp', default=False,
- description='Enable OpenMP')
- variant('rol', default=False,
- description='Enable ROL')
- variant('nox', default=False,
- description='Enable NOX')
- variant('shards', default=False,
- description='Enable Shards')
- variant('intrepid', default=False,
- description='Enable Intrepid')
- variant('intrepid2', default=False,
- description='Enable Intrepid2')
- variant('cgns', default=False,
- description='Enable CGNS')
resource(name='dtk',
git='https://github.com/ornl-cees/DataTransferKit',
@@ -178,6 +189,12 @@ class Trilinos(CMakePackage):
placement='packages/ForTrilinos',
when='+fortrilinos')
+ conflicts('+tpetra', when='~kokkos')
+ conflicts('+intrepid2', when='~kokkos')
+ conflicts('+amesos2', when='~tpetra')
+ conflicts('+ifpack2', when='~tpetra')
+ conflicts('+zoltan2', when='~tpetra')
+
conflicts('+dtk', when='~tpetra')
conflicts('+fortrilinos', when='~fortran')
conflicts('+fortrilinos', when='@:99')
@@ -281,50 +298,52 @@ class Trilinos(CMakePackage):
options.extend([
'-DTrilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=%s' % (
'ON' if '+alloptpkgs' in spec else 'OFF'),
- '-DTrilinos_ENABLE_Tpetra:BOOL=%s' % (
- 'ON' if '+tpetra' in spec else 'OFF'),
- '-DTrilinos_ENABLE_Epetra:BOOL=%s' % (
- 'ON' if '+epetra' in spec else 'OFF'),
- '-DTrilinos_ENABLE_EpetraExt:BOOL=%s' % (
- 'ON' if '+epetraext' in spec else 'OFF'),
- '-DTrilinos_ENABLE_ML:BOOL=%s' % (
- 'ON' if '+ml' in spec else 'OFF'),
- '-DTrilinos_ENABLE_AztecOO:BOOL=%s' % (
- 'ON' if '+aztec' in spec else 'OFF'),
- '-DTrilinos_ENABLE_Sacado:BOOL=%s' % (
- 'ON' if '+sacado' in spec else 'OFF'),
- '-DTrilinos_ENABLE_Belos:BOOL=%s' % (
- 'ON' if '+belos' in spec else 'OFF'),
- '-DTrilinos_ENABLE_Zoltan:BOOL=%s' % (
- 'ON' if '+zoltan' in spec else 'OFF'),
- '-DTrilinos_ENABLE_Zoltan2:BOOL=%s' % (
- 'ON' if '+zoltan2' in spec else 'OFF'),
'-DTrilinos_ENABLE_Amesos:BOOL=%s' % (
'ON' if '+amesos' in spec else 'OFF'),
'-DTrilinos_ENABLE_Amesos2:BOOL=%s' % (
'ON' if '+amesos2' in spec else 'OFF'),
- '-DTrilinos_ENABLE_MueLu:BOOL=%s' % (
- 'ON' if '+muelu' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Anasazi:BOOL=%s' % (
+ 'ON' if '+anasazi' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_AztecOO:BOOL=%s' % (
+ 'ON' if '+aztec' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Belos:BOOL=%s' % (
+ 'ON' if '+belos' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Epetra:BOOL=%s' % (
+ 'ON' if '+epetra' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_EpetraExt:BOOL=%s' % (
+ 'ON' if '+epetraext' in spec else 'OFF'),
'-DTrilinos_ENABLE_Ifpack:BOOL=%s' % (
'ON' if '+ifpack' in spec else 'OFF'),
'-DTrilinos_ENABLE_Ifpack2:BOOL=%s' % (
'ON' if '+ifpack2' in spec else 'OFF'),
- '-DTrilinos_ENABLE_Gtest:BOOL=%s' % (
- 'ON' if '+gtest' in spec else 'OFF'),
- '-DTrilinos_ENABLE_Teuchos:BOOL=%s' % (
- 'ON' if '+teuchos' in spec else 'OFF'),
- '-DTrilinos_ENABLE_Anasazi:BOOL=%s' % (
- 'ON' if '+anasazi' in spec else 'OFF'),
- '-DTrilinos_ENABLE_ROL:BOOL=%s' % (
- 'ON' if '+rol' in spec else 'OFF'),
- '-DTrilinos_ENABLE_NOX:BOOL=%s' % (
- 'ON' if '+nox' in spec else 'OFF'),
- '-DTrilinos_ENABLE_Shards=%s' % (
- 'ON' if '+shards' in spec else 'OFF'),
'-DTrilinos_ENABLE_Intrepid=%s' % (
'ON' if '+intrepid' in spec else 'OFF'),
'-DTrilinos_ENABLE_Intrepid2=%s' % (
'ON' if '+intrepid2' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Kokkos:BOOL=%s' % (
+ 'ON' if '+kokkos' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_ML:BOOL=%s' % (
+ 'ON' if '+ml' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_MueLu:BOOL=%s' % (
+ 'ON' if '+muelu' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_NOX:BOOL=%s' % (
+ 'ON' if '+nox' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_PyTrilinos:BOOL=%s' % (
+ 'ON' if '+python' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_ROL:BOOL=%s' % (
+ 'ON' if '+rol' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Sacado:BOOL=%s' % (
+ 'ON' if '+sacado' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Shards=%s' % (
+ 'ON' if '+shards' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Teuchos:BOOL=%s' % (
+ 'ON' if '+teuchos' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Tpetra:BOOL=%s' % (
+ 'ON' if '+tpetra' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Zoltan:BOOL=%s' % (
+ 'ON' if '+zoltan' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Zoltan2:BOOL=%s' % (
+ 'ON' if '+zoltan2' in spec else 'OFF'),
])
if '+xsdkflags' in spec:
@@ -388,8 +407,8 @@ class Trilinos(CMakePackage):
'-DNetCDF_ROOT:PATH=%s' % spec['netcdf'].prefix,
'-DTPL_ENABLE_X11:BOOL=%s' % (
'ON' if '+x11' in spec else 'OFF'),
- '-DTrilinos_ENABLE_PyTrilinos:BOOL=%s' % (
- 'ON' if '+python' in spec else 'OFF'),
+ '-DTrilinos_ENABLE_Gtest:BOOL=%s' % (
+ 'ON' if '+gtest' in spec else 'OFF'),
])
if '+hypre' in spec: