Browse Source

Fix kernel

Samuel Thibault 12 years ago
parent
commit
dc20ebe627
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/main/increment.cu

+ 1 - 1
tests/main/increment.cu

@@ -18,7 +18,7 @@
 
 static __global__ void cuda_increment(unsigned *var)
 {
-	*var++;
+	(*var)++;
 }
 
 extern "C" void cuda_host_increment(void *descr[], void *_args)