From da184e4232859cfc7d1bf3ca9cfcf44856a74fe5 Mon Sep 17 00:00:00 2001 From: KaiGai Kohei Date: Fri, 5 Jan 2024 01:08:49 +0900 Subject: [PATCH] bugfix: GpuGiSTJoin didn't move up/down the join-depth correctly. --- src/cuda_gpujoin.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cuda_gpujoin.cu b/src/cuda_gpujoin.cu index 7c6c137e6..5ad0286de 100644 --- a/src/cuda_gpujoin.cu +++ b/src/cuda_gpujoin.cu @@ -426,7 +426,7 @@ execGpuJoinGiSTJoin(kern_context *kcxt, return depth+1; } - if (WARP_WRITE_POS(wp,depth) >= WARP_READ_POS(wp,depth) + warpSize) + if (WARP_WRITE_POS(wp,depth) >= WARP_READ_POS(wp,depth) + get_local_size()) { /* * Next depth already have warpSize or more pending tuples,