Skip to content

Commit

Permalink
Fix compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj committed Oct 12, 2021
1 parent 68a0753 commit 4066bd0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions k2/csrc/cub.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@
// that k2 and PyTorch use a different copy
// of CUB.

#ifdef CUB_NS_PREFIX
#undef CUB_NS_PREFIX
#endif

#ifdef CUB_NS_POSTFIX
#undef CUB_NS_POSTFIX
#endif

#define CUB_NS_PREFIX namespace k2 {
#define CUB_NS_POSTFIX }

Expand Down

0 comments on commit 4066bd0

Please sign in to comment.