cub::DivideAndRoundUp

Defined in cub/util_math.cuh

template<typename NumeratorT, typename DenominatorT>
constexpr NumeratorT cub::DivideAndRoundUp(NumeratorT n, DenominatorT d)

Divide n by d, round up if any remainder, and return the result.

Effectively performs (n + d - 1) / d, but is robust against the case where (n + d - 1) would overflow. deprecated [Since 2.8.0] cub::DivideAndRoundUp is deprecated. Use cuda::ceil_div instead.