Commit 84f6ab05 authored by Axel Huebl's avatar Axel Huebl Committed by Ben Boeckel
Browse files

adios2: add support for blosc compression

Adds the `blosc` and `zstd` projects to support it.
parent 5c5b25c4
Pipeline #238349 failed with stages
......@@ -40,6 +40,7 @@ function (superbuild_find_projects var)
list(APPEND projects
adios2
blosc
boost
bzip2
cuda
......@@ -103,7 +104,8 @@ function (superbuild_find_projects var)
vtkm
xdmf3
zfp
zlib)
zlib
zstd)
# These projects only support Intel processors.
set(tbb_supported OFF)
......
......@@ -17,12 +17,12 @@ endif()
superbuild_add_project(adios2
CAN_USE_SYSTEM
DEPENDS
cxx11 zfp ${adios2_extra_deps}
cxx11 ${adios2_extra_deps}
# currently adios 2.6 unconditionally needs Python
# even if Python wrapping is disabled.
python3
DEPENDS_OPTIONAL
mpi
mpi blosc zfp png
CMAKE_ARGS
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
-DCMAKE_INSTALL_LIBDIR:STRING=lib
......@@ -30,13 +30,13 @@ superbuild_add_project(adios2
-DBUILD_TESTING:BOOL=OFF
-DADIOS2_BUILD_EXAMPLES:BOOL=OFF
-DADIOS2_USE_BZip2:STRING=OFF
-DADIOS2_USE_Blosc:STRING=OFF
-DADIOS2_USE_Blosc:STRING=${blosc_enabled}
-DADIOS2_USE_DataMan:STRING=OFF
-DADIOS2_USE_Fortran:STRING=OFF
-DADIOS2_USE_HDF5:STRING=OFF
-DADIOS2_USE_MGARD:STRING=OFF
-DADIOS2_USE_MPI:STRING=${mpi_enabled}
-DADIOS2_USE_PNG:STRING=OFF
-DADIOS2_USE_PNG:STRING=${png_enabled}
-DADIOS2_USE_Profiling:STRING=OFF
-DADIOS2_USE_Python:STRING=OFF
-DADIOS2_USE_SSC:STRING=ON
......
set(blosc_static_libs ON)
if (BUILD_SHARED_LIBS)
set(blosc_static_libs OFF)
endif ()
superbuild_add_project(blosc
CAN_USE_SYSTEM
DEPENDS
zlib zstd
CMAKE_ARGS
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
-DBUILD_SHARED:BOOL=${BUILD_SHARED_LIBS}
-DBUILD_STATIC:BOOL=${blosc_static_libs}
-DBUILD_TESTS:BOOL=OFF
-DBUILD_FUZZERS:BOOL=OFF
-DBUILD_BENCHMARKS:BOOL=OFF
# good addition, but uses Makefiles: http://lz4.github.io/lz4/
-DDEACTIVATE_LZ4:BOOL=ON
-DDEACTIVATE_SNAPPY:BOOL=ON
-DDEACTIVATE_ZLIB:BOOL=OFF
-DDEACTIVATE_ZSTD:BOOL=OFF
-DPREFER_EXTERNAL_LZ4:BOOL=ON
-DPREFER_EXTERNAL_ZLIB:BOOL=${zlib_enabled}
-DPREFER_EXTERNAL_ZSTD:BOOL=${zstd_enabled})
find_package(Blosc REQUIRED NO_MODULE)
superbuild_add_extra_cmake_args(
-DBlosc_DIR:PATH=${Blosc_DIR})
set(zstd_static_libs ON)
if (BUILD_SHARED_LIBS)
set(zstd_static_libs OFF)
endif ()
superbuild_add_project(zstd
CAN_USE_SYSTEM
SOURCE_SUBDIR build/cmake
CMAKE_ARGS
-DBUILD_TESTING:BOOL=OFF
-DZSTD_BUILD_SHARED:BOOL=${BUILD_SHARED_LIBS}
-DZSTD_BUILD_STATIC:BOOL=${zstd_static_libs}
-DZSTD_LEGACY_SUPPORT:BOOL=OFF
-DZSTD_MULTITHREAD_SUPPORT:BOOL=ON
-DZSTD_BUILD_PROGRAMS:BOOL=OFF
-DZSTD_BUILD_CONTRIB:BOOL=OFF)
find_package(Zstd REQUIRED NO_MODULE)
superbuild_add_extra_cmake_args(
-DZstd_DIR:PATH=${Zstd_DIR})
......@@ -223,6 +223,14 @@ superbuild_set_revision(mili
URL "https://www.paraview.org/files/dependencies/mili-15.1.tar.gz"
URL_MD5 "8848db9a5e692c010806d64b8c5e46a4")
superbuild_set_revision(zstd
URL "https://www.paraview.org/files/dependencies/zstd-1.5.0.tar.gz"
URL_MD5 "d5ac89d5df9e81243ce40d0c6a66691d")
superbuild_set_revision(blosc
URL "https://www.paraview.org/files/dependencies/blosc-1.21.0.tar.gz"
URL_MD5 "c32104bef76e5636cf0cedb40fd4d77b")
superbuild_set_revision(zfp
URL "https://www.paraview.org/files/dependencies/zfp-0.5.5.tar.gz"
URL_MD5 "bc7e5fb1cd4345d17f7b9d470a1f23e7")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment