Skip to content

Commit

Permalink
fixbug for sz size bound
Browse files Browse the repository at this point in the history
  • Loading branch information
ayzk committed Dec 12, 2024
1 parent 7ddd65d commit 45786ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/SZ3/api/impl/SZImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@ void SZ_decompress_impl(Config &conf, const uchar *cmpData, size_t cmpSize, T *d

template<class T>
size_t SZ_compress_size_bound(const Config &conf) {
bool omp = conf.openmp;
#ifndef _OPENMP
conf.openmp = false;
omp = false;
#endif
if (conf.openmp) {
if (omp) {
return SZ_compress_size_bound_omp<T>(conf);
} else {
return conf.size_est() + ZSTD_compressBound(conf.num * sizeof(T));
Expand Down

0 comments on commit 45786ed

Please sign in to comment.