Bläddra i källkod

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 år sedan
förälder
incheckning
93d79d1ef6
1 ändrade filer med 3 tillägg och 0 borttagningar
  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);
 	}