From 61816ba1276a83b4f9aa3ee0f8299eb7b0b3528a Mon Sep 17 00:00:00 2001 From: Kai Zhao Date: Thu, 3 Oct 2024 15:15:50 -0400 Subject: [PATCH] 1. update the logic to check data version 2. dispatcher logic change. SZ3 will enter lossless only mode automatically when needed 3. bug fix, see comments in Lossless_zstd.hpp --- include/SZ3/api/impl/SZImplOMP.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SZ3/api/impl/SZImplOMP.hpp b/include/SZ3/api/impl/SZImplOMP.hpp index b2130657..96d684c9 100644 --- a/include/SZ3/api/impl/SZImplOMP.hpp +++ b/include/SZ3/api/impl/SZImplOMP.hpp @@ -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(1), std::multiplies()); 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 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);