summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Hoffmann <volker@cheleb.net>2014-06-24 19:58:37 +0200
committerVolker Hoffmann <volker@cheleb.net>2014-06-24 19:58:37 +0200
commit36c6e1cf8e9894abaf5d47de0ee5107c0bbec8c0 (patch)
treec5161984a569c1093b38662fb0954850a44b470c
parent0e5d47fb2c49ef79712d06f6b026ddcd7f5ca75d (diff)
printf fix
-rw-r--r--incrementArrays.cu2
1 files changed, 1 insertions, 1 deletions
diff --git a/incrementArrays.cu b/incrementArrays.cu
index 3f727b6..179616b 100644
--- a/incrementArrays.cu
+++ b/incrementArrays.cu
@@ -35,7 +35,7 @@ int main(void)
// initialization of host data
for (i=0; i<N; i++) {
- printf("%.2f\n", i);
+ printf("%i\n", i);
a_h[i] = (float) i;
}
printf("\n");