소스 검색

Fix exp_len value with fxt

Adrien Guilbaud 5 년 전
부모
커밋
4f53046ff2
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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