Browse Source

Fix lost task when building with enable-fast

Samuel Thibault 8 years ago
parent
commit
0d2b92851a
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/sched_policies/component_prio.c

+ 4 - 1
src/sched_policies/component_prio.c

@@ -251,7 +251,10 @@ static int prio_can_push(struct starpu_sched_component * component)
 	task = starpu_sched_component_pump_downstream(component, &res); 
 
 	if(task)
-		STARPU_ASSERT(!prio_push_local_task(component,task,1));
+	{
+		int ret = prio_push_local_task(component,task,1);
+		STARPU_ASSERT(!ret);
+	}
 
 	return res;
 }