Template Struct InvokeOnBlock< 0 >¶
Defined in File invoke_cpu_impl_.hpp
Struct Documentation¶
-
template<>
structripple::kernel::detail
::
InvokeOnBlock
<0>¶ Implementation struct to invoke a callable in a blocked manner,.
- Template Parameters
I
: The index of the dimension to invoke for.
Public Static Functions
-
template<typename
Iterator
, typenameExecImpl
, typenameCallable
, typename ...Args
, exec_param_enable_t<ExecImpl> = 0>
autoinvoke
(Iterator &&it, ExecImpl &&exec_params, dim3 &threads, Callable &&callable, Args&&... args) -> void¶ Invokes the callable on the given iterator with the given args and execution params.
- Parameters
it
: The iterator to pass to the callable.exec_params
: The execution parameters.threads
: The number fo threads in each block.blocks
: The number of blocks.callable
: The callable object.args
: Arguments for the callable.
- Template Parameters
Iterator
: The type of the iterator.ExecImpl
: The type of the execution params.Callable
: The callable object to invoke.Args
: The type of the arguments for the invocation.