Skip to content

Commit

Permalink
ADIOS2: Campaign Variant (spack#43906)
Browse files Browse the repository at this point in the history
With v2.10+, ADIOS added a campaign manager. This is auto-enabled
if SQLite3 is found.

Add explicit control for it now and disables it by default, to avoid
picking up system dependencies or bloating by default the ADIOS2
dependencies. Also, not yet fully mature to be used by default:
ornladios/ADIOS2#4148
  • Loading branch information
ax3l authored and teaguesterling committed Jun 15, 2024
1 parent 04766c2 commit 0a9fa10
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions var/spack/repos/builtin/packages/adios2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class Adios2(CMakePackage, CudaPackage, ROCmPackage):
when="+shared",
description="Enable the DataMan engine for WAN transports",
)
variant("campaign", default=False, when="@2.10:", description="Enable campaign management")
variant("dataspaces", default=False, when="@2.5:", description="Enable support for DATASPACES")
variant("ssc", default=True, when="@:2.7", description="Enable the SSC staging engine")
variant("hdf5", default=False, description="Enable the HDF5 engine")
Expand Down Expand Up @@ -173,6 +174,8 @@ class Adios2(CMakePackage, CudaPackage, ROCmPackage):
depends_on("hdf5~mpi", when="+hdf5~mpi")
depends_on("hdf5+mpi", when="+hdf5+mpi")

depends_on("sqlite@3", when="+campaign")

depends_on("libpressio", when="+libpressio")
depends_on("c-blosc", when="+blosc")
depends_on("c-blosc2", when="+blosc2")
Expand Down Expand Up @@ -251,6 +254,7 @@ def cmake_args(self):
from_variant("ADIOS2_USE_Blosc", "blosc"),
from_variant("ADIOS2_USE_Blosc2", "blosc2"),
from_variant("ADIOS2_USE_BZip2", "bzip2"),
from_variant("ADIOS2_USE_Campaign", "campaign"),
from_variant("ADIOS2_USE_DataMan", "dataman"),
from_variant("ADIOS2_USE_DataSpaces", "dataspaces"),
from_variant("ADIOS2_USE_Fortran", "fortran"),
Expand Down

0 comments on commit 0a9fa10

Please sign in to comment.