浏览代码

examples/reductions/dot_product.c: get rid off unused variable

Nathalie Furmento 14 年之前
父节点
当前提交
ac7ddeb5e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/reductions/dot_product.c

+ 1 - 1
examples/reductions/dot_product.c

@@ -118,7 +118,7 @@ void dot_cuda_func(void *descr[], void *cl_arg)
 
 	cudaMemcpy(&current_dot, dot, sizeof(DOT_TYPE), cudaMemcpyDeviceToHost);
 
-	int ret = cudaThreadSynchronize();
+	cudaThreadSynchronize();
 
 	local_dot = (DOT_TYPE)cublasSdot(n, local_x, 1, local_y, 1);