Skip to content

Commit

Permalink
1. move version check to config.load()
Browse files Browse the repository at this point in the history
2. config.save() now use less space
3. update h5z-sz3 with readme and compact cd_value array
  • Loading branch information
ayzk committed Aug 31, 2024
1 parent 03062dc commit 160e3e4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
22 changes: 10 additions & 12 deletions tools/H5Z-SZ3/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,25 @@
#set(HDF5_LIBRARIES "/path/to/hdf5-1.12.1/hdf5/lib/libhdf5.so")
#set(HDF5_INCLUDE_DIRS "/path/to/hdf5-1.12.1/hdf5/include")

find_package(HDF5 REQUIRED)
find_package(HDF5 COMPONENTS C REQUIRED)

#message("HDF5LIB PATH:" ${HDF5_LIBRARIES})
#message("HDF5INCLUDE PATH:" ${HDF5_INCLUDE_DIRS})

add_library(
hdf5sz3
add_library(hdf5sz3
src/H5Z_SZ3.cpp
)

target_link_libraries(
hdf5sz3
PUBLIC SZ3 ${HDF5_LIBRARIES}
target_link_libraries(hdf5sz3
PUBLIC SZ3 HDF5::HDF5
)
if(${HDF5_IS_PARALLEL})
if (${HDF5_IS_PARALLEL})
find_package(MPI REQUIRED)
target_link_libraries(hdf5sz3 PUBLIC MPI::MPI_CXX)
endif()
target_link_libraries(hdf5sz3
PUBLIC MPI::MPI_CXX)
endif ()

target_include_directories(
hdf5sz3
target_include_directories(hdf5sz3
PUBLIC
${HDF5_INCLUDE_DIRS}
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand All @@ -37,6 +35,6 @@ install(TARGETS hdf5sz3 EXPORT HDF5SZ3
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
)
install(DIRECTORY include DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/hdf5_sz3)
export(TARGETS hdf5sz3 FILE HDF5SZ3.cmake)
8 changes: 4 additions & 4 deletions tools/H5Z-SZ3/test/sz3ToHDF5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
* See COPYRIGHT in top-level directory.
*/

#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <dlfcn.h>
#include <SZ3/utils/ByteUtil.hpp>

#include "hdf5.h"
#include "H5Cpp.h"
// #include "H5Cpp.h"
#include "H5Z_SZ3.hpp"
#include "SZ3/utils/FileUtil.hpp"
#include "SZ3/utils/Config.hpp"
Expand Down

0 comments on commit 160e3e4

Please sign in to comment.