ソースを参照

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]);