Lines Matching refs:s_counter
362 __shared__ int s_counter; in edgesHysteresisGlobalKernel() local
367 s_counter = 0; in edgesHysteresisGlobalKernel()
387 ind = Emulation::smem::atomicAdd(&s_counter, 1); in edgesHysteresisGlobalKernel()
395 while (s_counter > 0 && s_counter <= stack_size - blockDim.x) in edgesHysteresisGlobalKernel()
398 const int portion = ::min(s_counter, blockDim.x >> 3); in edgesHysteresisGlobalKernel()
401 pos = s_st[s_counter - 1 - subTaskIdx]; in edgesHysteresisGlobalKernel()
406 s_counter -= portion; in edgesHysteresisGlobalKernel()
419 ind = Emulation::smem::atomicAdd(&s_counter, 1); in edgesHysteresisGlobalKernel()
428 if (s_counter > 0) in edgesHysteresisGlobalKernel()
432 s_ind = ::atomicAdd(&counter, s_counter); in edgesHysteresisGlobalKernel()
434 if (s_ind + s_counter > map.cols * map.rows) in edgesHysteresisGlobalKernel()
435 s_counter = 0; in edgesHysteresisGlobalKernel()
442 for (int i = threadIdx.x; i < s_counter; i += blockDim.x) in edgesHysteresisGlobalKernel()