From 980c2a656d5ca2a3bb80cc1152e542f2b189589d Mon Sep 17 00:00:00 2001 From: Takanori Nakane Date: Tue, 24 Aug 2021 06:03:53 +0100 Subject: [PATCH] Compatibility with CUDA 11.5 (as suggested by Alexey Romanenko) --- src/acc/cuda/cuda_utils_cub.cuh | 2 ++ 1 file changed, 2 insertions(+) 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"