소스 검색

Better not keep tasks which are known to be done actually, to reduce memory consumption

Samuel Thibault 8 년 전
부모
커밋
122ed73fd2
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/debug/traces/starpu_fxt.c

+ 4 - 1
src/debug/traces/starpu_fxt.c

@@ -2370,7 +2370,10 @@ static void handle_task_done(struct fxt_ev_64 *ev, struct starpu_fxt_options *op
 	}
 
 	unsigned exclude_from_dag = ev->param[2];
-	get_task(job_id, options->file_rank)->exclude_from_dag = exclude_from_dag;
+	struct task_info *task = get_task(job_id, options->file_rank);
+	task->exclude_from_dag = exclude_from_dag;
+	if (tasks_file)
+		task_dump(task);
 
 	if (!exclude_from_dag)
 		_starpu_fxt_dag_set_task_done(options->file_prefix, job_id, name, colour);