Skip to content

Commit

Permalink
Add ADIOS2 option to Trilinos (spack#11609)
Browse files Browse the repository at this point in the history
ADIOS2 is the latest implementation of the ADaptable Input Output System,
ADIOS. This brand new architecture was designed to continue supporting the
performance legacy of ADIOS, and extend its current capabilities to address
current and future input/output (IO) challenges in the scientific data
lifecycle through effective research and development (R&D) activities.

ADIOS2 was recently added as a Third Party Library of Trilinos when it
was integrated to IOSS, a library inside the SEACAS package.
  • Loading branch information
Francois Budin authored and ax3l committed Jun 8, 2019
1 parent 61333dc commit 163ff9f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion var/spack/repos/builtin/packages/trilinos/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ class Trilinos(CMakePackage):
description='Compile with Boost')
variant('cgns', default=False,
description='Enable CGNS')
variant('adios2', default=False,
description='Enable ADIOS2')
variant('gtest', default=True,
description='Compile with Gtest')
variant('hdf5', default=True,
Expand Down Expand Up @@ -276,7 +278,9 @@ class Trilinos(CMakePackage):
'+shared', when='+stk platform=darwin',
msg='Cannot build Trilinos with STK as a shared library on Darwin.'
)

# ADIOS2 was only added after v12.14.1
conflicts('+adios2', when='@:12.14.1')
conflicts('+adios2', when='@xsdk-0.2.0')
# ###################### Dependencies ##########################

# Everything should be compiled position independent (-fpic)
Expand All @@ -297,6 +301,7 @@ class Trilinos(CMakePackage):
depends_on('parallel-netcdf', when="+pnetcdf@master,12.12.1:")
depends_on('parmetis', when='+metis')
depends_on('cgns', when='+cgns')
depends_on('adios2', when='+adios2')
# Trilinos' Tribits config system is limited which makes it very tricky to
# link Amesos with static MUMPS, see
# https://trilinos.org/docs/dev/packages/amesos2/doc/html/classAmesos2_1_1MUMPS.html
Expand Down Expand Up @@ -674,6 +679,7 @@ def cmake_args(self):
'-DTPL_ENABLE_CGNS:BOOL=OFF'
])

options.append('-DTPL_ENABLE_ADIOS2:BOOL=' + str('+adios2' in spec))
# ################# Miscellaneous Stuff ######################

# OpenMP
Expand Down

0 comments on commit 163ff9f

Please sign in to comment.