Shortcuts

Template Function ripple::get_dim_num_blocks

Function Documentation

template<typename T, typename U>
auto ripple::get_dim_num_blocks(T elements, U threads) noexcept -> size_t

Computes the number of blocks given that there are elements in the dimension and threads in 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.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples