From 2f6cce0de8f0ad192cd5b73eb66a50b6fbfa0f6f Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Fri, 24 Jan 2025 10:07:37 +0100 Subject: [PATCH] Deprecate macros from cuda/detail/core/util.h (#3504) --- thrust/thrust/system/cuda/detail/core/util.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/thrust/thrust/system/cuda/detail/core/util.h b/thrust/thrust/system/cuda/detail/core/util.h index 2105489fc43..5ab1d2f12ac 100644 --- a/thrust/thrust/system/cuda/detail/core/util.h +++ b/thrust/thrust/system/cuda/detail/core/util.h @@ -60,24 +60,33 @@ namespace core #ifdef _NVHPC_CUDA # if (__NVCOMPILER_CUDA_ARCH__ >= 600) +// deprecated [since 2.8] # define THRUST_TUNING_ARCH sm60 # elif (__NVCOMPILER_CUDA_ARCH__ >= 520) +// deprecated [since 2.8] # define THRUST_TUNING_ARCH sm52 # elif (__NVCOMPILER_CUDA_ARCH__ >= 350) +// deprecated [since 2.8] # define THRUST_TUNING_ARCH sm35 # else +// deprecated [since 2.8] # define THRUST_TUNING_ARCH sm30 # endif #else # if (__CUDA_ARCH__ >= 600) +// deprecated [since 2.8] # define THRUST_TUNING_ARCH sm60 # elif (__CUDA_ARCH__ >= 520) +// deprecated [since 2.8] # define THRUST_TUNING_ARCH sm52 # elif (__CUDA_ARCH__ >= 350) +// deprecated [since 2.8] # define THRUST_TUNING_ARCH sm35 # elif (__CUDA_ARCH__ >= 300) +// deprecated [since 2.8] # define THRUST_TUNING_ARCH sm30 # elif !defined(__CUDA_ARCH__) +// deprecated [since 2.8] # define THRUST_TUNING_ARCH sm30 # endif #endif @@ -684,6 +693,7 @@ inline void _CCCL_DEVICE sync_threadblock() __syncthreads(); } +// Deprecated [Since 2.8] #define CUDA_CUB_RET_IF_FAIL(e) \ { \ auto const error = (e); \