Commit db79022b authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fixed shared memory size for linesAccumShared

parent 36fe62d7
......@@ -210,7 +210,7 @@ namespace cv { namespace gpu { namespace device
cudaSafeCall( cudaFuncSetCacheConfig(linesAccumShared, cudaFuncCachePreferShared) );
size_t smemSize = (accum.cols - 2) * sizeof(int);
size_t smemSize = (accum.cols - 1) * sizeof(int);
if (smemSize < sharedMemPerBlock - 1000)
linesAccumShared<<<grid, block, smemSize>>>(list, count, accum, 1.0f / rho, theta, accum.cols - 2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment