소스 검색

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 년 전
부모
커밋
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);
 	}