Skip to content

Commit 3af4b64

Browse files
committed
libpressio version 0.55.3
Minor Improvment Support for newer SZ ExaFEL
1 parent 564f3cb commit 3af4b64

3 files changed

Lines changed: 24 additions & 10 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
2-
project(libpressio VERSION "0.55.2" LANGUAGES CXX C)
2+
project(libpressio VERSION "0.55.3" LANGUAGES CXX C)
33

44
#correct was to set a default build type
55
# https://blog.kitware.com/cmake-and-the-default-build-type/

COPYRIGHT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Copyright © 2021 , UChicago Argonne, LLC
22
All Rights Reserved
3-
[libpressio, Version 0.55.2]
3+
[libpressio, Version 0.55.3]
44
Robert Underwood
55
Argonne National Laboratory
66

src/plugins/compressors/sz_plugin.cc

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,11 @@ class sz_plugin: public libpressio_compressor_plugin {
126126
set(options, "sz:accelerate_pw_rel_compression", confparams_cpr->accelerate_pw_rel_compression);
127127
set_type(options, "sz:prediction_mode", pressio_option_int32_type);
128128
set_type(options, "sz:data_type", pressio_option_double_type);
129-
#if PRESSIO_SZ_VERSION_GREATEREQ(2,1,9,0)
130-
set(options, "sz:exafel:peaks", exafel_peaks);
129+
#if PRESSIO_SZ_VERSION_GREATEREQ(2,1,11,1)
130+
set(options, "sz:exafel:peaks_segs", exafel_peaks_segs);
131+
set(options, "sz:exafel:peaks_rows", exafel_peaks_rows);
132+
set(options, "sz:exafel:peaks_cols", exafel_peaks_cols);
133+
set(options, "sz:exafel:num_peaks", static_cast<unsigned int>(exafel_params.numPeaks));
131134
set(options, "sz:exafel:calib_panel", exafel_calibPanel);
132135
set(options, "sz:exafel:tolerance", exafel_params.tolerance);
133136
set(options, "sz:exafel:bin_size", static_cast<unsigned int>(exafel_params.binSize));
@@ -186,16 +189,25 @@ class sz_plugin: public libpressio_compressor_plugin {
186189
get(options, "sz:data_type", &confparams_cpr->dataType);
187190
get(options, "sz:app", &app);
188191
get(options, "sz:user_params", &user_params);
189-
#if PRESSIO_SZ_VERSION_GREATEREQ(2,1,9,0)
192+
#if PRESSIO_SZ_VERSION_GREATEREQ(2,1,11,1)
190193
{
191-
if(get(options, "sz:exafel:peaks", &exafel_peaks) == pressio_options_key_set) {
192-
exafel_params.peaks = static_cast<uint8_t*>(exafel_peaks.data());
194+
unsigned int temp;
195+
if(get(options, "sz:exafel:peaks_segs", &exafel_peaks_segs) == pressio_options_key_set) {
196+
exafel_params.peaksSegs = static_cast<uint16_t*>(exafel_peaks_segs.data());
197+
}
198+
if(get(options, "sz:exafel:peaks_rows", &exafel_peaks_rows) == pressio_options_key_set) {
199+
exafel_params.peaksRows = static_cast<uint16_t*>(exafel_peaks_rows.data());
200+
}
201+
if(get(options, "sz:exafel:peaks_cols", &exafel_peaks_cols) == pressio_options_key_set) {
202+
exafel_params.peaksCols = static_cast<uint16_t*>(exafel_peaks_cols.data());
203+
}
204+
if(get(options, "sz:exafel:num_peaks", &temp) == pressio_options_key_set) {
205+
exafel_params.numPeaks=static_cast<uint64_t>(temp);
193206
}
194207
if(get(options, "sz:exafel:calib_panel", &exafel_calibPanel) == pressio_options_key_set) {
195208
exafel_params.calibPanel = static_cast<uint8_t*>(exafel_calibPanel.data());
196209
}
197210
get(options, "sz:exafel:tolerance", &exafel_params.tolerance);
198-
unsigned int temp;
199211
if(get(options, "sz:exafel:bin_size", &temp) == pressio_options_key_set) {
200212
exafel_params.binSize=static_cast<uint8_t>(temp);
201213
}
@@ -336,8 +348,10 @@ class sz_plugin: public libpressio_compressor_plugin {
336348
std::string sz_version;
337349
std::string app = "SZ";
338350
void* user_params = nullptr;
339-
#if PRESSIO_SZ_VERSION_GREATEREQ(2,1,9,0)
340-
pressio_data exafel_peaks;
351+
#if PRESSIO_SZ_VERSION_GREATEREQ(2,1,11,1)
352+
pressio_data exafel_peaks_segs;
353+
pressio_data exafel_peaks_rows;
354+
pressio_data exafel_peaks_cols;
341355
pressio_data exafel_calibPanel;
342356
exafelSZ_params exafel_params{};
343357
#endif

0 commit comments

Comments
 (0)