Shortcuts

Template Function ripple::block_idx

Function Documentation

template<typename Dim>
auto ripple::block_idx(Dim &&dim) noexcept -> size_t

Gets the value of the block index in the grid in the given dimension.

The dimension must be one of dim_x, dim_y, dim_z, or a value specifting the index of the dimension.

Note

This index is local to the execution device, if multiple devices are used, the same block index may be on both devices.

Return

The index of the thread in the given dimension.

Parameters
  • dim: the dimension to get the index for.

Template Parameters
  • Dim: the type of the dimension specifier.

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