adios2: add aws variant (#38857)

This commit is contained in:
Vicente Bolea 2023-07-12 14:14:47 -04:00 committed by GitHub
parent 78b24b45f6
commit 5ba99b8eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,6 +76,12 @@ class Adios2(CMakePackage, CudaPackage):
variant("dataspaces", default=False, when="@2.5:", description="Enable support for DATASPACES")
variant("ssc", default=True, description="Enable the SSC staging engine")
variant("hdf5", default=False, description="Enable the HDF5 engine")
variant(
"aws",
default=False,
when="@2.9:",
description="Enable support for S3 compatible storage using AWS SDK's S3 module",
)
# Optional language bindings, C++11 and C always provided
variant("cuda", default=False, when="@2.8:", description="Enable CUDA support")
@ -131,6 +137,7 @@ class Adios2(CMakePackage, CudaPackage):
depends_on("python@3.5:", when="@2.5.0:", type="test")
depends_on("py-numpy@1.6.1:", when="+python", type=("build", "run"))
depends_on("py-mpi4py@2.0.0:", when="+mpi +python", type=("build", "run"))
depends_on("aws-sdk-cpp", when="+aws")
# Fix findmpi when called by dependees
# See https://github.com/ornladios/ADIOS2/pull/1632
@ -179,6 +186,7 @@ def cmake_args(self):
args = [
from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic"),
from_variant("BUILD_SHARED_LIBS", "shared"),
from_variant("ADIOS2_USE_AWSSDK", "aws"),
from_variant("ADIOS2_USE_Blosc", "blosc"),
from_variant("ADIOS2_USE_BZip2", "bzip2"),
from_variant("ADIOS2_USE_DataMan", "dataman"),