Skip to content

Commit

Permalink
Merge branch 'branch-24.08' into revert_15905
Browse files Browse the repository at this point in the history
  • Loading branch information
ttnghia authored Jul 15, 2024
2 parents 3ca0ea6 + ceb73d9 commit 8d9476f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpp/src/io/comp/nvcomp_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@
#include NVCOMP_ZSTD_HEADER
#endif

// When building with nvcomp 4.0 or newer, map the new version macros to the old ones
#ifndef NVCOMP_MAJOR_VERSION
#define NVCOMP_MAJOR_VERSION NVCOMP_VER_MAJOR
#define NVCOMP_MINOR_VERSION NVCOMP_VER_MINOR
#define NVCOMP_PATCH_VERSION NVCOMP_VER_PATCH
#endif

#define NVCOMP_HAS_ZSTD_DECOMP(MAJOR, MINOR, PATCH) (MAJOR > 2 or (MAJOR == 2 and MINOR >= 3))

#define NVCOMP_HAS_ZSTD_COMP(MAJOR, MINOR, PATCH) (MAJOR > 2 or (MAJOR == 2 and MINOR >= 4))
Expand Down

0 comments on commit 8d9476f

Please sign in to comment.