소스 검색

Make sure we wait for complete termination of all tasks before cleaning them

Samuel Thibault 12 년 전
부모
커밋
1315d99763
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      tests/microbenchs/tasks_overhead.c

+ 2 - 0
tests/microbenchs/tasks_overhead.c

@@ -155,6 +155,8 @@ int main(int argc, char **argv)
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_tag_wait");
 	gettimeofday(&end_exec, NULL);
 
+	starpu_task_wait_for_all();
+
 	for (i = 0; i < ntasks; i++)
 		starpu_task_clean(&tasks[i]);