소스 검색

src/sched_policies/deque_modeling_policy_data_aware.c: bug fix

Nathalie Furmento 12 년 전
부모
커밋
4249ac606c
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/sched_policies/deque_modeling_policy_data_aware.c

+ 1 - 2
src/sched_policies/deque_modeling_policy_data_aware.c

@@ -221,11 +221,10 @@ static struct starpu_task *dmda_pop_task(unsigned sched_ctx_id)
 		double transfer_model = task->predicted_transfer;
 		/* We now start the transfer, get rid of it in the completion
 		 * prediction */
-		if(!isnan(transfer_model))
-		double model = task->predicted;
 
 		if(!isnan(transfer_model)) 
 		{
+			double model = task->predicted;
 			fifo->exp_len -= transfer_model;
 			fifo->exp_start = starpu_timing_now() + transfer_model+model;
 			fifo->exp_end = fifo->exp_start + fifo->exp_len;