Skip to content

Commit

Permalink
Remove deprecated cub::min (#3450)
Browse files Browse the repository at this point in the history
* Remove deprecated `cuda::{min,max}`

* Drop unused `thrust::remove_cvref` file
  • Loading branch information
miscco authored Jan 20, 2025
1 parent 2fe4537 commit 8630af6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 63 deletions.
20 changes: 0 additions & 20 deletions cub/cub/util_macro.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -49,26 +49,6 @@

CUB_NAMESPACE_BEGIN

#ifndef _CCCL_DOXYGEN_INVOKED // Do not document
# define CUB_PREVENT_MACRO_SUBSTITUTION
template <typename T, typename U>
CCCL_DEPRECATED_BECAUSE("Use cuda::std::min from <cuda/std/functional> instead")
constexpr _CCCL_HOST_DEVICE auto min CUB_PREVENT_MACRO_SUBSTITUTION(T&& t, U&& u)
-> decltype(t < u ? ::cuda::std::forward<T>(t) : ::cuda::std::forward<U>(u))
{
return t < u ? ::cuda::std::forward<T>(t) : ::cuda::std::forward<U>(u);
}

template <typename T, typename U>
CCCL_DEPRECATED_BECAUSE("Use cuda::std::max from <cuda/std/functional> instead")
constexpr _CCCL_HOST_DEVICE auto max CUB_PREVENT_MACRO_SUBSTITUTION(T&& t, U&& u)
-> decltype(t < u ? ::cuda::std::forward<U>(u) : ::cuda::std::forward<T>(t))
{
return t < u ? ::cuda::std::forward<U>(u) : ::cuda::std::forward<T>(t);
}
# undef CUB_PREVENT_MACRO_SUBSTITUTION
#endif

#ifndef CUB_MAX
/// Select maximum(a, b)
# define CUB_MAX(a, b) (((b) > (a)) ? (b) : (a))
Expand Down
43 changes: 0 additions & 43 deletions thrust/thrust/type_traits/remove_cvref.h

This file was deleted.

0 comments on commit 8630af6

Please sign in to comment.