소스 검색

Fix lost task when building with enable-fast

Samuel Thibault 8 년 전
부모
커밋
0d2b92851a
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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;
 }