Samuel Thibault 9 yıl önce
ebeveyn
işleme
3b83de8eb9
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. 4 0
      src/core/sched_policy.c

+ 4 - 0
src/core/sched_policy.c

@@ -805,6 +805,10 @@ pick:
 			{
 				if (sched_ctx->sched_policy && sched_ctx->sched_policy->pop_task)
 				{
+					/* Note: we do not push the scheduling state here, because
+					 * otherwise when a worker is idle, we'd keep
+					 * pushing/popping a scheduling state here, while what we
+					 * want to see in the trace is a permanent idle state. */
 					task = sched_ctx->sched_policy->pop_task(sched_ctx->id);
 					_starpu_pop_task_end(task);
 				}