SWDEV-570500 - Fixed graph node to stream scheduling in multistream path (#2596)

Этот коммит содержится в:
Ioannis Assiouras
2026-01-21 20:48:46 +00:00
коммит произвёл GitHub
родитель 7cab5ea514
Коммит f05a33968f
+6 -4
Просмотреть файл
@@ -202,10 +202,12 @@ void Graph::ScheduleOneNode(Node node, int stream_id) {
reinterpret_cast<hip::ChildGraphNode*>(node)->GraphExec::TopologicalOrder();
}
for (auto edge : node->GetEdges()) {
ScheduleOneNode(edge, stream_id);
// 1. Each extra edge will get a new stream from the pool
// 2. Streams will be reused if the number of edges > streams
stream_id = (stream_id + 1) % DEBUG_HIP_FORCE_GRAPH_QUEUES;
if (edge->stream_id_ == -1) {
ScheduleOneNode(edge, stream_id);
// 1. Each extra edge will get a new stream from the pool
// 2. Streams will be reused if the number of edges > streams
stream_id = (stream_id + 1) % DEBUG_HIP_FORCE_GRAPH_QUEUES;
}
}
}
}