Graph Partitioning #20965
Graph Partitioning
#20965
-
Docs say that a graph is partitioned https://onnxruntime.ai/docs/reference/high-level-design.html#high-level-system-architecture. What is the algorithm used to partition the graph? Could you please describe how that works? Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
pranavsharma
Jun 26, 2024
Replies: 1 comment 2 replies
-
Anyone? Where in the code could I find the answer? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The partitioning algorithm is roughly as follows. (I'm intentionally skipping the finer details here). Code is here https://github.com/microsoft/onnxruntime/blob/main/onnxruntime/core/framework/graph_partitioner.cc#L940.
The priority of EPs is the order in which uses register them with the session.
Unmarked nodes in the graph are assigned to CPU by default.