Template Function ripple::get_dim_num_threads¶
Defined in File execution_size.hpp
Function Documentation¶
-
template<typename
T, typenameU>
autoripple::get_dim_num_threads(T elements, U max_threads) noexcept -> size_t¶ Computes the number of threads given that there are
elementsin the dimension, andmax_threadsmaximum number of threads for the dimension.If elements < max_threads, then this returns
max_threads, otherwise it returnselements.- Return
The number of threads.
- Parameters
elements: The number of elements in the dimension.max_threads: The maximum number of threads for the dimension.
- Template Parameters
T: The type of the elements.U: The type of the max threads.