24 template<
typename TDim,
typename TIdx>
33 template<
typename TDim,
typename TIdx>
40 template<
typename TDim,
typename TIdx>
41 struct GetIdx<bt::IdxBtOmp<TDim, TIdx>, origin::Block, unit::Threads>
44 template<
typename TWorkDiv>
50 return mapIdx<TDim::value>(
51 Vec<
DimInt<1u>, TIdx>(
static_cast<TIdx
>(::omp_get_thread_num())),
52 getWorkDiv<Block, Threads>(workDiv));
56 template<
typename TIdx>
57 struct GetIdx<bt::IdxBtOmp<DimInt<1u>, TIdx>, origin::Block, unit::Threads>
60 template<
typename TWorkDiv>
64 return Vec<DimInt<1u>, TIdx>(
static_cast<TIdx
>(::omp_get_thread_num()));
69 template<
typename TDim,
typename TIdx>
#define ALPAKA_ASSERT_ACC(...)
ALPAKA_ASSERT_ACC is an assert-like macro.
The OpenMP accelerator index provider.
The alpaka accelerator library.
std::integral_constant< std::size_t, N > DimInt
Tag used in class inheritance hierarchies that describes that a specific interface (TInterface) is im...
The dimension getter type trait.
static auto getIdx(bt::IdxBtOmp< DimInt< 1u >, TIdx > const &, TWorkDiv const &) -> Vec< DimInt< 1u >, TIdx >
static auto getIdx(bt::IdxBtOmp< TDim, TIdx > const &, TWorkDiv const &workDiv) -> Vec< TDim, TIdx >