7 auto const size =
std::min(dataA->metadata().size(),
static_cast<int>(dataB.
size()));
10 auto const& deviceProperties = alpaka::getAccDevProps<Acc1D>(alpaka::getDev(
queue));
11 uint32_t maxThreadsPerBlock = deviceProperties.m_blockThreadExtentMax[0];
13 uint32_t threadsPerBlock = maxThreadsPerBlock;
14 uint32_t blocksPerGrid = (size + threadsPerBlock - 1) / threadsPerBlock;
15 uint32_t elementsPerThread = 1;
16 auto workDiv =
WorkDiv1D{blocksPerGrid, threadsPerBlock, elementsPerThread};
21 [] ALPAKA_FN_ACC(Acc1D
const& acc,
26 const int32_t thread = alpaka::getIdx<alpaka::Grid, alpaka::Threads>(acc)[0u];
27 const int32_t
stride = alpaka::getWorkDiv<alpaka::Grid, alpaka::Threads>(acc)[0u];
28 for (
auto i = thread;
i < size;
i +=
stride) {
ret
prodAgent to be discontinued
typename Layout::ConstView ConstView
typename Layout::View View
WorkDiv< Dim1D > WorkDiv1D
AlpakaESTestDataDDevice testESAlgoAsync(Queue &queue, AlpakaESTestDataADevice const &dataA, cms::alpakatest::AlpakaESTestDataB< Device > const &dataB)