We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84f113e commit a7f4971Copy full SHA for a7f4971
modules/cudaimgproc/src/cuda/corners.cu
@@ -154,7 +154,9 @@ namespace cv { namespace cuda { namespace device
154
cudaSafeCall( cudaGetLastError() );
155
156
if (stream == 0)
157
- cudaSafeCall( cudaDeviceSynchronize() );
+ cudaSafeCall(cudaDeviceSynchronize());
158
+ else
159
+ cudaSafeCall(cudaStreamSynchronize(stream));
160
}
161
162
/////////////////////////////////////////// Corner Min Eigen Val /////////////////////////////////////////////////
@@ -262,6 +264,8 @@ namespace cv { namespace cuda { namespace device
262
264
263
265
266
cudaSafeCall(cudaDeviceSynchronize());
267
268
269
270
271
}}}
0 commit comments