Quellcode durchsuchen

best_impl: Fix setting length for chosen impl

Samuel Thibault vor 5 Jahren
Ursprung
Commit
f9456e3a3d
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  1. 1 0
      src/sched_policies/component_best_implementation.c

+ 1 - 0
src/sched_policies/component_best_implementation.c

@@ -37,6 +37,7 @@ static int find_best_impl(unsigned sched_ctx_id, struct starpu_task * task, int
 		/* No perfmodel, first available will be fine */
 		starpu_worker_can_execute_task_first_impl(workerid, task, &impl);
 		best_impl = impl;
+		len = 0.0;
 	}
 	else for(impl = 0; impl < STARPU_MAXIMPLEMENTATIONS; impl++)
 	{