Template Function ripple::get_dim_num_blocks¶
Defined in File execution_size.hpp
Function Documentation¶
-
template<typename
T, typenameU>
autoripple::get_dim_num_blocks(T elements, U threads) noexcept -> size_t¶ Computes the number of blocks given that there are
elementsin the dimension andthreadsin the dimension for the block.- Return
The number of blocks for the dimension.
- Parameters
elements: The number of elements in the dimension.max_threads: The number of threads in the dimension.
- Template Parameters
T: The type of the elements.U: The type of the max threads.