alpaka
Abstraction Library for Parallel Kernel Acceleration
|
The trait for getting the size of the block shared dynamic memory of a kernel. More...
#include <Traits.hpp>
Static Public Member Functions | |
template<typename TDim , typename... TArgs> | |
ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC auto | getBlockSharedMemDynSizeBytes ([[maybe_unused]] TKernelFnObj const &kernelFnObj, [[maybe_unused]] Vec< TDim, Idx< TAcc >> const &blockThreadExtent, [[maybe_unused]] Vec< TDim, Idx< TAcc >> const &threadElemExtent, [[maybe_unused]] TArgs const &... args) -> std::size_t |
The trait for getting the size of the block shared dynamic memory of a kernel.
TKernelFnObj | The kernel function object. |
TAcc | The accelerator. |
The default implementation returns 0.
Definition at line 44 of file Traits.hpp.
|
inlinestatic |
kernelFnObj | The kernel object for which the block shared memory size should be calculated. |
blockThreadExtent | The block thread extent. |
threadElemExtent | The thread element extent. |
TArgs | The kernel invocation argument types pack. |
args,... | The kernel invocation arguments. |
Definition at line 63 of file Traits.hpp.