Browse Source

src: write fxt event for trace name earlier so that a graph generated before the task execution will contain the task names

Nathalie Furmento 4 years ago
parent
commit
69aaa3f9e6
2 changed files with 1 additions and 2 deletions
  1. 0 2
      src/core/jobs.c
  2. 1 0
      src/core/task.c

+ 0 - 2
src/core/jobs.c

@@ -412,8 +412,6 @@ void _starpu_handle_job_termination(struct _starpu_job *j)
 			_starpu_spin_unlock(&handle->header_lock);
 	}
 
-	_STARPU_TRACE_TASK_NAME(j);
-
 	/* If this is a continuation, we do not notify task/tag dependencies
 	 * now. Task/tag dependencies will be notified only when the continued
 	 * task fully completes */

+ 1 - 0
src/core/task.c

@@ -912,6 +912,7 @@ int _starpu_task_submit(struct starpu_task *task, int nodeps)
 		_STARPU_TRACE_TASK_SUBMIT(j,
 			_starpu_get_sched_ctx_struct(task->sched_ctx)->iterations[0],
 			_starpu_get_sched_ctx_struct(task->sched_ctx)->iterations[1]);
+		_STARPU_TRACE_TASK_NAME(j);
 	}
 
 	/* If this is a continuation, we don't modify the implicit data dependencies detected earlier. */