Sfoglia il codice sorgente

Fix exp_len value with fxt

Adrien Guilbaud 5 anni fa
parent
commit
4f53046ff2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/sched_policies/component_prio.c

+ 1 - 1
src/sched_policies/component_prio.c

@@ -112,9 +112,9 @@ static int prio_push_local_task(struct starpu_sched_component * component, struc
 	const double now = starpu_timing_now();
 	STARPU_COMPONENT_MUTEX_LOCK(mutex);
 
+	double exp_len = NAN;
 	if(data->exp)
 	{
-		double exp_len;
 		if(!isnan(task->predicted))
 			exp_len = prio->exp_len + task->predicted;
 		else