Samuel Thibault преди 7 години
родител
ревизия
6ed1ccd5d0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/sched_policies/component_heft.c

+ 1 - 1
src/sched_policies/component_heft.c

@@ -114,7 +114,7 @@ static int heft_progress_one(struct starpu_sched_component *component)
 		double max_benefit = 0;
 
 		/* Find the task which provides the most computation time benefit */
-		for (n = 1; n < ntasks; n++)
+		for (n = 0; n < ntasks; n++)
 		{
 			double benefit = max_exp_end_with_task[n] - min_exp_end_with_task[n];
 			if (max_benefit < benefit)