![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
The class used to bind kernel function object and arguments together. Once an instance of this class is created, arguments are not needed to be separately given to functions who need kernel function and arguments. More...
#include <KernelBundle.hpp>
Public Types | |
| using | ArgTuple |
| Tuple type to encapsulate kernel function argument types and argument values. | |
| using | KernelFn = std::decay_t<TKernelFn> |
| The function object type. | |
Public Member Functions | |
| constexpr | KernelBundle (KernelBundle const &b)=default |
| constexpr | KernelBundle (KernelFn const &kernelFn) |
| constexpr | KernelBundle (KernelFn const &kernelFn, auto &&... args) |
| template<typename TAcc> | |
| constexpr auto | operator() (TAcc const &acc) const |
| constexpr KernelBundle & | operator= (KernelBundle const &)=default |
| constexpr | KernelBundle (KernelBundle &&b)=default |
| allow move assignment and constriction | |
| constexpr KernelBundle & | operator= (KernelBundle &&)=default |
| allow move assignment and constriction | |
Public Attributes | |
| ArgTuple | m_args |
| KernelFn | m_kernelFn |
The class used to bind kernel function object and arguments together. Once an instance of this class is created, arguments are not needed to be separately given to functions who need kernel function and arguments.
| TKernelFn | The kernel function object type. |
| TArgs | Kernel function object invocation argument types as a parameter pack. |
Definition at line 58 of file KernelBundle.hpp.
| using alpaka::KernelBundle< TKernelFn, TArgs >::ArgTuple |
Tuple type to encapsulate kernel function argument types and argument values.
Definition at line 64 of file KernelBundle.hpp.
| using alpaka::KernelBundle< TKernelFn, TArgs >::KernelFn = std::decay_t<TKernelFn> |
The function object type.
Definition at line 62 of file KernelBundle.hpp.
|
inlineconstexpr |
Definition at line 70 of file KernelBundle.hpp.
|
inlineconstexpr |
Definition at line 78 of file KernelBundle.hpp.
|
constexprdefault |
|
constexprdefault |
allow move assignment and constriction
|
inlineconstexpr |
Definition at line 115 of file KernelBundle.hpp.
|
constexprdefault |
allow move assignment and constriction
|
constexprdefault |
| ArgTuple alpaka::KernelBundle< TKernelFn, TArgs >::m_args |
Definition at line 143 of file KernelBundle.hpp.
| KernelFn alpaka::KernelBundle< TKernelFn, TArgs >::m_kernelFn |
Definition at line 141 of file KernelBundle.hpp.