fixed minor bug in gpu::sum
This commit is contained in:
parent
3997514b7c
commit
e193fa1165
@ -1554,7 +1554,7 @@ namespace cv { namespace gpu { namespace mathfunc
|
|||||||
cudaSafeCall(cudaThreadSynchronize());
|
cudaSafeCall(cudaThreadSynchronize());
|
||||||
|
|
||||||
R result = 0;
|
R result = 0;
|
||||||
cudaSafeCall(cudaMemcpy(&result, buf_, result, cudaMemcpyDeviceToHost));
|
cudaSafeCall(cudaMemcpy(&result, buf_, sizeof(result), cudaMemcpyDeviceToHost));
|
||||||
sum[0] = result;
|
sum[0] = result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user