Shortcuts

Template Function ripple::get_exec_size

Function Documentation

template<typename Block, typename ExeImpl, any_block_1d_enable_t<Block> = 0>
auto ripple::get_exec_size(const Block &block, const ExecParams<ExeImpl> &exec_params, int overlap = 0) noexcept -> std::tuple<dim3, dim3>

Computes the number of threads and blocks required to cover the space defined by the block, with the execution space defined by the exec_params.

This overload is only enabled if the block is one dimensional.

This overload is only enabled if the

block is two dimensional.
Return

A tuple with { num threads (3d), num blocks (3d) }.

Parameters
  • block: The block to generate the execution size for.

  • exec_params: The execution parameters.

Template Parameters
  • Block: The type of the block.

  • ExeImpl: The type of the execution parameter implementation.

This overload is only enabled if the

block is three dimensional.
Return

A tuple with { num threads (3d), num blocks (3d) }.

Parameters
  • block: The block to generate the execution size for.

  • exec_params: The execution parameters.

Template Parameters
  • Block: The type of the block.

  • ExeImpl: The type of the execution parameter implementation.

Return

A tuple with { num threads (3d), num blocks (3d) }.

Parameters
  • block: The block to generate the execution size for.

  • exec_params: The execution parameters.

Template Parameters
  • Block: The type of the block.

  • ExeImpl: The type of the execution parameter implementation.

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