Prechádzať zdrojové kódy

tests: define access modes for data handle in struct starpu_codelet

Nathalie Furmento 13 rokov pred
rodič
commit
cd9e291248

+ 5 - 3
tests/datawizard/acquire_cb_insert.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2011  Centre National de la Recherche Scientifique
+ * Copyright (C) 2011, 2012  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -33,7 +33,8 @@ struct starpu_codelet which_index =
 {
 	.where = STARPU_CPU,
 	.cpu_funcs = {which_index_cpu, NULL},
-        .nbuffers = 1
+        .nbuffers = 1,
+	.modes = {STARPU_W}
 };
 
 void work_cpu(void *descr[], void *_args)
@@ -49,7 +50,8 @@ struct starpu_codelet work =
 {
 	.where = STARPU_CPU,
 	.cpu_funcs = {work_cpu, NULL},
-        .nbuffers = 1
+        .nbuffers = 1,
+	.modes = {STARPU_W}
 };
 
 static int x;

+ 2 - 1
tests/datawizard/data_lookup.c

@@ -39,7 +39,8 @@ static struct starpu_codelet cl =
 {
 	.where = STARPU_CPU,
 	.cpu_funcs = {task, NULL},
-	.nbuffers = 1
+	.nbuffers = 1,
+	.modes = {STARPU_W}
 };
 
 static int test_lazy_allocation()

+ 2 - 1
tests/datawizard/handle_to_pointer.c

@@ -60,7 +60,8 @@ static struct starpu_codelet cl =
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {cuda_task, NULL},
 #endif
-	.nbuffers = 1
+	.nbuffers = 1,
+	.modes = {STARPU_W}
 };
 
 int main(int argc, char *argv[])

+ 4 - 2
tests/datawizard/lazy_allocation.c

@@ -56,7 +56,8 @@ static struct starpu_codelet memset_cl =
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {cuda_memset_codelet, NULL},
 #endif
-	.nbuffers = 1
+	.nbuffers = 1,
+	.modes = {STARPU_W}
 };
 
 /*
@@ -106,7 +107,8 @@ static struct starpu_codelet check_content_cl =
 #ifdef STARPU_USE_CUDA
 	.cuda_funcs = {cuda_check_content_codelet, NULL},
 #endif
-	.nbuffers = 1
+	.nbuffers = 1,
+	.modes = {STARPU_R}
 };