Skip to content

Commit

Permalink
Fix race condition in kEstimateQuantiles (#1061)
Browse files Browse the repository at this point in the history
  • Loading branch information
pnunna93 committed Feb 14, 2024
1 parent 344e851 commit 5b28fd3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions csrc/kernels.cu
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,8 @@ __global__ void kEstimateQuantiles(T *__restrict__ const A, float *code, const f
for(int j = threadIdx.x; j < BLOCK_ESTIMATE; j+=blockDim.x)
temp_storage.smem_qidx[j] = -1;

__syncthreads();

if(threadIdx.x < 256)
{
float q_interval = (1.0f-(2.0f*offset))/255.0f;
Expand Down

0 comments on commit 5b28fd3

Please sign in to comment.