13 #include <type_traits>
26 template<
typename TWorkDiv,
typename TOrigin,
typename TUnit,
typename TSfinae =
void>
32 template<
typename TOrigin,
typename TUnit,
typename TWorkDiv>
42 template<
typename TWorkDiv>
48 return alpaka::getWorkDiv<origin::Grid, unit::Blocks>(workDiv)
49 * alpaka::getWorkDiv<origin::Block, unit::Threads>(workDiv);
54 template<
typename TWorkDiv>
60 return alpaka::getWorkDiv<origin::Grid, unit::Threads>(workDiv)
61 * alpaka::getWorkDiv<origin::Thread, unit::Elems>(workDiv);
66 template<
typename TWorkDiv>
72 return alpaka::getWorkDiv<origin::Block, unit::Threads>(workDiv)
73 * alpaka::getWorkDiv<origin::Thread, unit::Elems>(workDiv);
#define ALPAKA_FN_HOST_ACC
#define ALPAKA_NO_HOST_ACC_WARNING
Disable nvcc warning: 'calling a host function from host device function.' Usage: ALPAKA_NO_HOST_ACC_...
typename detail::ImplementationBaseType< TInterface, TDerived >::type ImplementationBase
Returns the type that implements the given interface in the inheritance hierarchy.
The alpaka accelerator library.
typename trait::IdxType< T >::type Idx
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto getWorkDiv(TWorkDiv const &workDiv) -> Vec< Dim< TWorkDiv >, Idx< TWorkDiv >>
Get the extent requested.
ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC auto getWorkDiv(TWorkDiv const &workDiv)
ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC auto getWorkDiv(TWorkDiv const &workDiv)
ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC auto getWorkDiv(TWorkDiv const &workDiv)