Skip to content

Commit

Permalink
Use pointsPerTile when calculating tile number
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaldu committed Apr 9, 2024
1 parent abca109 commit 7d105dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CLUEstering/alpaka/CLUE/CLUEAlgoAlpaka.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE {
// Create temporary tiles object
auto temp = cms::alpakatools::make_host_buffer<TilesAlpaka<Ndim>>(queue_);
alpaka::memset(queue_, temp, 0x00);
temp->resizeTiles(std::ceil(h_points.n / static_cast<float>(max_tile_depth)));
temp->resizeTiles(std::ceil(h_points.n / static_cast<float>(pointsPerTile_)));
calculate_tile_size(temp.data(), h_points);

alpaka::memcpy(queue_, *d_tiles, temp);
Expand Down

0 comments on commit 7d105dd

Please sign in to comment.