Forráskód Böngészése

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 éve
szülő
commit
93d79d1ef6
1 módosított fájl, 3 hozzáadás és 0 törlés
  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);
 	}