diff --git a/src/acc/cuda/cuda_utils_cub.cuh b/src/acc/cuda/cuda_utils_cub.cuh index 3a6d7425f..3e32fb862 100644 --- a/src/acc/cuda/cuda_utils_cub.cuh +++ b/src/acc/cuda/cuda_utils_cub.cuh @@ -12,6 +12,8 @@ #if(defined(CubLog) && defined(__CUDA_ARCH__) && (__CUDA_ARCH__<= 520)) // Intetionally force a warning for new arch #undef CubLog #endif + +#define CUB_NS_QUALIFIER ::cub # for compatibility with CUDA 11.5 #include "src/acc/cuda/cub/device/device_radix_sort.cuh" #include "src/acc/cuda/cub/device/device_reduce.cuh" #include "src/acc/cuda/cub/device/device_scan.cuh"