Skip to content

Commit 5f855a2

Browse files
committed
fix illegal memory access
1 parent 9c33077 commit 5f855a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

csrc/cuda/fps_cuda.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ __global__ void fps_kernel(const scalar_t *src, const int64_t *ptr,
2525
}
2626

2727
for (int64_t m = out_ptr[batch_idx] + 1; m < out_ptr[batch_idx + 1]; m++) {
28+
__syncthreads();
2829
int64_t old = out[m - 1];
2930

3031
scalar_t best = (scalar_t)-1.;

0 commit comments

Comments
 (0)