ソースを参照

Fix typo in `datawizard/data_lookup.c'.

Ludovic Courtès 14 年 前
コミット
ce503b62ae
共有2 個のファイルを変更した3 個の追加2 個の削除を含む
  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
 };