lima/gpir: Only try to place actual children
When picking a node to be scheduled, we try to schedule its children as well. But we shouldn't try to schedule nodes which only have a fake dependency on the original node, since this isn't the point of scheduling children at the same time and can break some expectations of the rest of the code. Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
This commit is contained in:
@@ -706,7 +706,7 @@ static int _schedule_try_node(sched_ctx *ctx, gpir_node *node, bool speculative)
|
||||
int score = 0;
|
||||
|
||||
gpir_node_foreach_pred(node, dep) {
|
||||
if (!gpir_is_input_node(dep->pred))
|
||||
if (dep->type != GPIR_DEP_INPUT)
|
||||
continue;
|
||||
|
||||
int pred_score = INT_MIN;
|
||||
|
Reference in New Issue
Block a user