Skip to content

Commit

Permalink
update logic for buffer size checking
Browse files Browse the repository at this point in the history
  • Loading branch information
ayzk committed Dec 10, 2024
1 parent f7b9432 commit 95d906b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions include/SZ3/api/impl/SZImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,9 @@ size_t SZ_compress_size_bound(const Config &conf) {
conf.openmp = false;
#endif
if (conf.openmp) {
auto bound = SZ_compress_size_bound_omp<T>(conf);
printf("bound: %zu\n", bound);
return bound;
return SZ_compress_size_bound_omp<T>(conf);
} else {
auto bound= conf.size_est() + ZSTD_compressBound(conf.num * sizeof(T));
printf("bound: %zu\n", bound);
return bound;
return conf.size_est() + ZSTD_compressBound(conf.num * sizeof(T));
}
}

Expand Down

0 comments on commit 95d906b

Please sign in to comment.