提交 e193fa11 编写于 作者: A Alexey Spizhevoy

fixed minor bug in gpu::sum

上级 3997514b
......@@ -1554,7 +1554,7 @@ namespace cv { namespace gpu { namespace mathfunc
cudaSafeCall(cudaThreadSynchronize());
R result = 0;
cudaSafeCall(cudaMemcpy(&result, buf_, result, cudaMemcpyDeviceToHost));
cudaSafeCall(cudaMemcpy(&result, buf_, sizeof(result), cudaMemcpyDeviceToHost));
sum[0] = result;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册