Skip to content

Commit

Permalink
Deprecate macros from cuda/detail/core/util.h (#3504)
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Jan 24, 2025
1 parent 6d735b6 commit 2f6cce0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions thrust/thrust/system/cuda/detail/core/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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); \
Expand Down

0 comments on commit 2f6cce0

Please sign in to comment.