浏览代码

Prevent heteroprio from prefetching several times

Samuel Thibault 4 年之前
父节点
当前提交
c0aa0e457e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/sched_policies/heteroprio.c

+ 2 - 1
src/sched_policies/heteroprio.c

@@ -625,7 +625,8 @@ done:		;
 		     task_to_prefetch  = starpu_task_prio_list_next(&worker->tasks_queue.list, task_to_prefetch))
 		{
 			/* prefetch from closest to end task */
-			starpu_prefetch_task_input_for(task_to_prefetch, workerid);
+			if (!task_to_prefetch->prefetch) /* FIXME: it seems we are prefetching several times?? *
+				starpu_prefetch_task_input_for(task_to_prefetch, workerid);
 			nb_added_tasks -= 1;
 		}
 	}