Explorar el Código

Heft: make sure that scheduled tasks are removed from their bundle.

Cyril Roelandt hace 12 años
padre
commit
dea73a9872
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/sched_policies/heft.c

+ 3 - 0
src/sched_policies/heft.c

@@ -438,6 +438,9 @@ static int _heft_push_task(struct starpu_task *task, unsigned prio)
 			task->priority = 0;
 			task->priority = 0;
 		}
 		}
 
 
+		if (task->bundle)
+			starpu_task_bundle_remove(task->bundle, task);
+
 		return push_task_on_best_worker(task, forced_worker, 0.0, 0.0);
 		return push_task_on_best_worker(task, forced_worker, 0.0, 0.0);
 	}
 	}