Skip to content

Commit 5bc874a

Browse files
author
Mårten Björkman
committed
Minor fixes
1 parent 566d65d commit 5bc874a

File tree

8 files changed

+744
-137
lines changed

8 files changed

+744
-137
lines changed

cudaImage.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ double CudaImage::CopyToTexture(CudaImage &dst, bool host)
106106
safeCall(cudaMemcpyToArray((cudaArray *)dst.t_data, 0, 0, h_data, sizeof(float)*pitch*dst.height, cudaMemcpyHostToDevice));
107107
else
108108
safeCall(cudaMemcpyToArray((cudaArray *)dst.t_data, 0, 0, d_data, sizeof(float)*pitch*dst.height, cudaMemcpyDeviceToDevice));
109-
safeCall(cudaThreadSynchronize());
109+
safeCall(cudaDeviceSynchronize());
110110
double gpuTime = timer.read();
111111
#ifdef VERBOSE
112112
printf("CopyToTexture time = %.2f ms\n", gpuTime);

0 commit comments

Comments
 (0)