Browse Source

Use a float instead of a double

Cédric Augonnet 15 years ago
parent
commit
d685be755d
1 changed files with 1 additions and 1 deletions
  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)
 {
-	*tab += 1.0;
+	*tab += 1.0f;
 	return;
 }