Pārlūkot izejas kodu

heft should now be fixed for multiple implementations

Samuel Thibault 13 gadi atpakaļ
vecāks
revīzija
f1e95134c6
1 mainītis faili ar 1 papildinājumiem un 6 dzēšanām
  1. 1 6
      src/sched_policies/heft.c

+ 1 - 6
src/sched_policies/heft.c

@@ -265,10 +265,6 @@ static void compute_all_performance_predictions(struct starpu_task *task,
 
 	*best_exp_endp = best_exp_end;
 	*max_exp_endp = max_exp_end;
-
-	/* save the best implementation */
-	//_STARPU_DEBUG("Scheduler heft: kernel (%u)\n", best_impl);
-	//_starpu_get_job_associated_to_task(task)->nimpl = best_impl;
 }
 
 static int _heft_push_task(struct starpu_task *task, unsigned prio)
@@ -285,7 +281,7 @@ static int _heft_push_task(struct starpu_task *task, unsigned prio)
 	double local_power[nworkers];
 	double exp_end[nworkers];
 	double max_exp_end = 0.0;
-	unsigned int  nimpls[STARPU_MAXIMPLEMENTATIONS];
+	unsigned int  nimpls[nworkers];
 
 	double best_exp_end;
 
@@ -318,7 +314,6 @@ static int _heft_push_task(struct starpu_task *task, unsigned prio)
 
 	for (worker = 0; worker < nworkers; worker++)
 	{
-		/* FIXME: multiimpl! */
 		if (!starpu_worker_may_execute_task(worker, task, 0))
 		{
 			/* no one on that queue may execute this task */