소스 검색

Use a float instead of a double

Cédric Augonnet 15 년 전
부모
커밋
d685be755d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/basic_examples/variable_kernels.cu

+ 1 - 1
examples/basic_examples/variable_kernels.cu

@@ -18,7 +18,7 @@
 
 
 static __global__ void cuda_variable(float * tab)
 static __global__ void cuda_variable(float * tab)
 {
 {
-	*tab += 1.0;
+	*tab += 1.0f;
 	return;
 	return;
 }
 }