Skip to content

Commit

Permalink
1. update the logic to check data version
Browse files Browse the repository at this point in the history
2. dispatcher logic change. SZ3 will enter lossless only mode automatically when needed
3. bug fix, see comments in Lossless_zstd.hpp
  • Loading branch information
ayzk committed Oct 3, 2024
1 parent 9bd968f commit 61816ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SZ3/api/impl/SZImplOMP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ size_t SZ_compress_OMP(Config &conf, const T *data, uchar *cmpData, size_t cmpCa
size_t num_t_base = std::accumulate(++it, dims_t.end(), static_cast<size_t>(1), std::multiplies<size_t>());
size_t num_t = dims_t[0] * num_t_base;

T *data_t = data + lo * num_t_base;
const T *data_t = data + lo * num_t_base;
// std::vector<T> data_t(data + lo * num_t_base, data + lo * num_t_base + num_t);
if (conf.errorBoundMode != EB_ABS) {
auto minmax = std::minmax_element(data_t, data_t + num_t);
Expand Down

0 comments on commit 61816ba

Please sign in to comment.