Browse Source

debug/traces: add missing check if tasks.rec file is NULL

Samuel Pitoiset 9 years ago
parent
commit
11fd9402e5
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/debug/traces/starpu_fxt.c

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

@@ -1846,7 +1846,9 @@ 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;
-	task_dump(job_id, options->file_rank);
+
+	if (tasks_file)
+		task_dump(job_id, options->file_rank);
 
 	if (!exclude_from_dag)
 		_starpu_fxt_dag_set_task_done(job_id, name, colour);