浏览代码

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;