Просмотр исходного кода

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
Родитель
Сommit
93d79d1ef6
1 измененных файлов с 3 добавлено и 0 удалено
  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);
 	}