浏览代码

Fix calibrator not managing to push tasks to workers

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

+ 2 - 8
src/sched_policies/component_eager_calibration.c

@@ -2,7 +2,7 @@
  *
  * Copyright (C) 2013                                     Inria
  * Copyright (C) 2014,2017                                CNRS
- * Copyright (C) 2014-2015,2017                           Université de Bordeaux
+ * Copyright (C) 2014-2015,2017-2018                      Université de Bordeaux
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -57,13 +57,7 @@ static int eager_calibration_push_task(struct starpu_sched_component * component
 						{
 							if (idworker == workerid)
 							{
-								if(starpu_sched_component_is_worker(component->children[i]))
-								{
-									if (component->children[i]->can_pull(component->children[i]))
-										return 1;
-								}
-								else
-									return starpu_sched_component_push_task(component,component->children[i],task);
+								return starpu_sched_component_push_task(component,component->children[i],task);
 							}
 						}
 					}