26 template<
typename TAcc,
typename = std::enable_if_t<isAccelerator<TAcc>>>
34 if constexpr(accMatchesTags<TAcc, TagCpuSycl, TagFpgaSyclIntel>)
37 return acc.m_item_workdiv.get_global_linear_id() == 0;
40 return getIdx<Grid, Threads>(acc) ==
Vec::zeros();
50 template<
typename TAcc,
typename = std::enable_if_t<isAccelerator<TAcc>>>
ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC constexpr auto zeros() -> Vec< TDim, TVal >
Zero value constructor.
#define ALPAKA_FN_ACC
All functions that can be used on an accelerator have to be attributed with ALPAKA_FN_ACC or ALPAKA_F...
The alpaka accelerator library.
typename trait::IdxType< T >::type Idx
ALPAKA_FN_ACC constexpr bool oncePerGrid(TAcc const &acc)
typename trait::DimType< T >::type Dim
The dimension type trait alias template to remove the ::type.
ALPAKA_FN_ACC constexpr bool oncePerBlock(TAcc const &acc)