Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Mårten Björkman committed Jun 12, 2019
1 parent 566d65d commit 5bc874a
Show file tree
Hide file tree
Showing 8 changed files with 744 additions and 137 deletions.
2 changes: 1 addition & 1 deletion cudaImage.cu
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ double CudaImage::CopyToTexture(CudaImage &dst, bool host)
safeCall(cudaMemcpyToArray((cudaArray *)dst.t_data, 0, 0, h_data, sizeof(float)*pitch*dst.height, cudaMemcpyHostToDevice));
else
safeCall(cudaMemcpyToArray((cudaArray *)dst.t_data, 0, 0, d_data, sizeof(float)*pitch*dst.height, cudaMemcpyDeviceToDevice));
safeCall(cudaThreadSynchronize());
safeCall(cudaDeviceSynchronize());
double gpuTime = timer.read();
#ifdef VERBOSE
printf("CopyToTexture time = %.2f ms\n", gpuTime);
Expand Down
Loading

0 comments on commit 5bc874a

Please sign in to comment.