add missing __syncthreads to edgesHysteresisLocalKernel
This commit is contained in:
Vladislav Vinogradov
2014-02-20 10:24:52 +04:00
parent ce42593fe6
commit 7fd21d217a

View File

@@ -293,8 +293,12 @@ namespace canny
n += smem[threadIdx.y + 2][threadIdx.x + 2] == 2;
}
__syncthreads();
if (n > 0)
smem[threadIdx.y + 1][threadIdx.x + 1] = 2;
__syncthreads();
}
const int e = smem[threadIdx.y + 1][threadIdx.x + 1];