Parcourir la source

Fix push/pop tracing, thanks Jean-Marie Couteyen for the investigation

Samuel Thibault il y a 10 ans
Parent
commit
15881164a8
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/core/sched_policy.c

+ 2 - 1
src/core/sched_policy.c

@@ -351,7 +351,6 @@ int _starpu_push_task(struct _starpu_job *j)
 
 	_STARPU_LOG_IN();
 
-	_STARPU_TRACE_JOB_PUSH(task, task->priority > 0);
 	_starpu_increment_nready_tasks_of_sched_ctx(task->sched_ctx, task->flops);
 	task->status = STARPU_TASK_READY;
 
@@ -409,6 +408,8 @@ int _starpu_push_task_to_workers(struct starpu_task *task)
 	struct _starpu_sched_ctx *sched_ctx = _starpu_get_sched_ctx_struct(task->sched_ctx);
 	unsigned nworkers = 0;
 
+	_STARPU_TRACE_JOB_PUSH(task, task->priority > 0);
+
 	/* if the contexts still does not have workers put the task back to its place in
 	   the empty ctx list */
 	if(!sched_ctx->is_initial_sched)