Browse Source

Fix typo in `datawizard/data_lookup.c'.

Ludovic Courtès 14 years ago
parent
commit
ce503b62ae
2 changed files with 3 additions and 2 deletions
  1. 1 1
      tests/datawizard/data_lookup.c
  2. 2 1
      tests/datawizard/handle_to_pointer.c

+ 1 - 1
tests/datawizard/data_lookup.c

@@ -54,7 +54,7 @@ static void test_lazy_allocation()
 
 	starpu_insert_task(&cl,
 			   STARPU_W, handle,
-			   STARPU_VALUE, &count, sizeof(float),
+			   STARPU_VALUE, &count, sizeof(size_t),
 			   0);
 
 	/* Acquire the handle, forcing a local allocation.  */

+ 2 - 1
tests/datawizard/handle_to_pointer.c

@@ -34,8 +34,9 @@ static void task(void **buffers, void *args)
 }
 
 static starpu_codelet cl = {
-	.where = STARPU_CPU,
+	.where = STARPU_CPU | STARPU_CUDA,
 	.cpu_func = task,
+	.cuda_func = task,
 	.nbuffers = 1
 };