Skip to content

Commit fdf87ec

Browse files
Fix bug
1 parent 969eac9 commit fdf87ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cuda/src/ball_query_gpu.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ __global__ void query_ball_point_kernel_partial_dense(int size_x,
6666
const ptrdiff_t end_idx_y = batch_y[batch_idx + 1];
6767
float radius2 = radius * radius;
6868

69-
for (ptrdiff_t n_x = start_idx_x + idx; n_x < end_idx_x; n_x += THREADS) {
69+
for (ptrdiff_t n_x = start_idx_x + idx; n_x < end_idx_x; n_x += TOTAL_THREADS) {
7070
int64_t count = 0;
7171
for (ptrdiff_t n_y = start_idx_y; n_y < end_idx_y; n_y++) {
7272
float dist = 0;

0 commit comments

Comments
 (0)