From c30b66a772a231e877b5054853ba40521f5d7b2a Mon Sep 17 00:00:00 2001 From: Simone Balducci Date: Wed, 30 Oct 2024 13:08:49 +0100 Subject: [PATCH] Fix work div --- CLUEstering/alpaka/CLUE/CLUEAlgoAlpaka.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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{},