Skip to content

Commit

Permalink
bugfix: wrong termination condition of GpuPreAgg
Browse files Browse the repository at this point in the history
  • Loading branch information
kaigai committed Nov 15, 2023
1 parent 0ca11b3 commit f706b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cuda_gpupreagg.cu
Original file line number Diff line number Diff line change
Expand Up @@ -2048,8 +2048,8 @@ execGpuPreAggGroupBy(kern_context *kcxt,
*/
skip_reduction:
if (get_local_id() == 0)
WARP_READ_POS(wp,n_rels) += Min(WARP_WRITE_POS(wp,n_rels),
WARP_READ_POS(wp,n_rels) + get_local_size());
WARP_READ_POS(wp,n_rels) = Min(WARP_WRITE_POS(wp,n_rels),
WARP_READ_POS(wp,n_rels) + get_local_size());
__syncthreads();
if (wp->scan_done <= n_rels)
{
Expand Down

0 comments on commit f706b42

Please sign in to comment.