fixed minor bug in gpu::sum

pull/13383/head
Alexey Spizhevoy 14 years ago
parent 3997514b7c
commit e193fa1165
  1. 2
      modules/gpu/src/cuda/mathfunc.cu

@ -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;
}

Loading…
Cancel
Save