ソースを参照

Fix expected start of tasks: after task execution, the CPU time is already elapsed.

Samuel Thibault 13 年 前
コミット
8360d50c2b
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      src/sched_policies/heft.c

+ 1 - 1
src/sched_policies/heft.c

@@ -106,7 +106,7 @@ static void heft_post_exec_hook(struct starpu_task *task)
 	 * of work. */
 	PTHREAD_MUTEX_LOCK(&sched_mutex[workerid]);
 	exp_len[workerid] -= model;
-	exp_start[workerid] = starpu_timing_now() + model;
+	exp_start[workerid] = starpu_timing_now();
 	exp_end[workerid] = exp_start[workerid] + exp_len[workerid];
 	ntasks[workerid]--;
 	PTHREAD_MUTEX_UNLOCK(&sched_mutex[workerid]);