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 d1aaa33 commit f7b9432
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 @@ -73,7 +73,7 @@ size_t SZ_compress_OMP(Config &conf, const T *data, uchar *cmpData, size_t cmpCa
// we have to use conf_t[tid].N instead of N since each chunk may be a slice of the original data
if (conf_t[tid].N==1) {
cmp_size_t[tid] = SZ_compress_dispatcher<T, 1>(conf_t[tid], data_t, compressed_t[tid], cmp_size_cap);
} else if (conf_t[tid].N==1) {
} else if (conf_t[tid].N==2) {
cmp_size_t[tid] = SZ_compress_dispatcher<T, 2>(conf_t[tid], data_t, compressed_t[tid], cmp_size_cap);
}else if ( conf_t[tid].N==3) {
cmp_size_t[tid] = SZ_compress_dispatcher<T, 3>(conf_t[tid], data_t, compressed_t[tid], cmp_size_cap);
Expand Down

0 comments on commit f7b9432

Please sign in to comment.