Skip to content

Commit 6a0f48b

Browse files
Drop cub::DivideAndRoundUp (#3347)
1 parent 18b8e43 commit 6a0f48b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

cub/cub/util_math.cuh

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,6 @@ _CCCL_HOST_DEVICE _CCCL_FORCEINLINE OffsetT safe_add_bound_to_max(OffsetT lhs, O
7272

7373
} // namespace detail
7474

75-
/**
76-
* Divide n by d, round up if any remainder, and return the result.
77-
*
78-
* Effectively performs `(n + d - 1) / d`, but is robust against the case where
79-
* `(n + d - 1)` would overflow.
80-
* deprecated [Since 2.8.0] `cub::DivideAndRoundUp` is deprecated. Use `cuda::ceil_div` instead.
81-
*/
82-
template <typename NumeratorT, typename DenominatorT>
83-
CCCL_DEPRECATED_BECAUSE("Use cuda::ceil_div instead")
84-
_CCCL_HOST_DEVICE _CCCL_FORCEINLINE constexpr NumeratorT DivideAndRoundUp(NumeratorT n, DenominatorT d)
85-
{
86-
static_assert(
87-
cub::detail::is_integral_or_enum<NumeratorT>::value && cub::detail::is_integral_or_enum<DenominatorT>::value,
88-
"DivideAndRoundUp is only intended for integral types.");
89-
return ::cuda::ceil_div(n, d);
90-
}
91-
9275
constexpr _CCCL_HOST_DEVICE int Nominal4BItemsToItemsCombined(int nominal_4b_items_per_thread, int combined_bytes)
9376
{
9477
return (cub::min)(nominal_4b_items_per_thread, (cub::max)(1, nominal_4b_items_per_thread * 8 / combined_bytes));

0 commit comments

Comments
 (0)