diff --git a/CLUEstering/alpaka/CLUE/CLUEAlgoAlpaka.h b/CLUEstering/alpaka/CLUE/CLUEAlgoAlpaka.h index cc05b22..8cf90f1 100644 --- a/CLUEstering/alpaka/CLUE/CLUEAlgoAlpaka.h +++ b/CLUEstering/alpaka/CLUE/CLUEAlgoAlpaka.h @@ -183,8 +183,10 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE { h_points.n)); auto temp = cms::alpakatools::make_device_buffer(queue_, h_points.n); ++nTiles; + auto test_grid_size = cms::alpakatools::divide_up_by(nTiles, 32); + auto test_work_div = cms::alpakatools::make_workdiv(test_grid_size, 32); alpaka::enqueue(queue_, - alpaka::createTaskKernel(tiles_working_div, + alpaka::createTaskKernel(test_work_div, KernelOffsetAccumulate{}, m_tiles->offset(), temp.data(), @@ -196,6 +198,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE { alpaka::enqueue(queue_, alpaka::createTaskKernel( work_div, KernelZeroBuffer{}, temp.data(), h_points.n)); + alpaka::enqueue(queue_, alpaka::createTaskKernel(work_div, KernelFillAssociator{},