mirror of
https://github.com/opencv/opencv.git
synced 2025-01-19 06:53:50 +08:00
fix racecheck warning in scanRows kernel
This commit is contained in:
parent
9d2d173485
commit
fb15bdfb21
@ -280,7 +280,8 @@ __global__ void scanRows(T_in *d_src, Ncv32u texOffs, Ncv32u srcWidth, Ncv32u sr
|
||||
|
||||
__shared__ T_out shmem[NUM_SCAN_THREADS * 2];
|
||||
__shared__ T_out carryElem;
|
||||
carryElem = 0;
|
||||
if (threadIdx.x == 0)
|
||||
carryElem = 0;
|
||||
__syncthreads();
|
||||
|
||||
while (numBuckets--)
|
||||
|
Loading…
Reference in New Issue
Block a user