Template Function ripple::get_exec_size¶
Function Documentation¶
-
template<typename
Block
, typenameExeImpl
, any_block_1d_enable_t<Block> = 0>
autoripple
::
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 theexec_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.