14 #include <type_traits>
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 constexpr ALPAKA_FN_HOST_ACC 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
constexpr ALPAKA_FN_ACC bool oncePerGrid(TAcc const &acc)
constexpr ALPAKA_FN_ACC bool oncePerBlock(TAcc const &acc)
typename trait::DimType< T >::type Dim
The dimension type trait alias template to remove the ::type.