Selaa lähdekoodia

tests/main/init_run_deinit.c: use synchronous tasks.

This avoids overwriting the value of the codelet arguments by having two tasks using it in write mode at the same time.
Cyril Roelandt 12 vuotta sitten
vanhempi
commit
93d79d1ef6
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      tests/main/driver_api/init_run_deinit.c

+ 3 - 0
tests/main/driver_api/init_run_deinit.c

@@ -107,6 +107,7 @@ test_cpu(void)
 		cl.where = STARPU_CPU;
 		task->cl = &cl;
 		task->cl_arg = &var;
+		task->synchronous = 1;
 
 		run(task, &d);
 	}
@@ -166,6 +167,7 @@ test_cuda(void)
 		cl.where = STARPU_CUDA;
 		task->cl = &cl;
 		task->cl_arg = &var;
+		task->synchronous = 1;
 
 		run(task, &d);
 	}
@@ -244,6 +246,7 @@ test_opencl(void)
 		cl.where = STARPU_OPENCL;
 		task->cl = &cl;
 		task->cl_arg = &var;
+		task->synchronous = 1;
 
 		run(task, &d);
 	}