Skip to content

Commit

Permalink
Merge pull request #1200 from lattice/hotfix/cub-legacy
Browse files Browse the repository at this point in the history
Hotfix/cub legacy
  • Loading branch information
maddyscientist authored Oct 28, 2021
2 parents 6eb3255 + 6d0ea3d commit 4ad5fcf
Show file tree
Hide file tree
Showing 87 changed files with 4 additions and 3 deletions.
4 changes: 4 additions & 0 deletions include/cub_helper.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ using namespace quda;
struct __half { };
#endif

#if CUDA_VERSION >= 11000
#include <cub/block/block_reduce.cuh>
#else
#include <cub_legacy/block/block_reduce.cuh>
#endif
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions include/thrust_helper.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
#define CUB_USE_COOPERATIVE_GROUPS
#endif

// needed for newer versions of thrust/cub
#define CUB_NS_QUALIFIER cub

// hack required to silence a thrust complaint with clang-11
#if defined(__clang__) && defined(__CUDA__)
#define _CubLog(...)
Expand Down

0 comments on commit 4ad5fcf

Please sign in to comment.