Browse Source

Explicitly use float constants so that nvcc does not protest.

Cédric Augonnet 15 years ago
parent
commit
5e58eecdc5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      examples/incrementer/incrementer_kernels.cu

+ 2 - 2
examples/incrementer/incrementer_kernels.cu

@@ -18,8 +18,8 @@
 
 static __global__ void cuda_incrementer(float * tab)
 {
-	tab[0] = tab[0] + 1.0;
-	tab[2] = tab[2] + 1.0;
+	tab[0] = tab[0] + 1.0f;
+	tab[2] = tab[2] + 1.0f;
 	
 	return;
 }