Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[autoparallel] add cost graph class #1481

Conversation

YuliangLiu0306
Copy link
Contributor

A graph data structure to simplify the edge cost graph. It has two main functions:
1. To feed the quadratic resharding costs into solver, we need to linearize it. We build edge_cost in
CostGraph, and it stored every combinations of strategies for a src-dst node pair in an 1D list.
2. To reduce the searching space, we merge computationally-trivial operators, such as
element-wise operators, transpose, and reduction, into their following nodes. The merging infomation will
be given by the StrategiesVector depending on the type of target node and following nodes.

Additional,some previous bugs has been fixed in this PR:

  1. misspelling of variable name
  2. fix bugs in handler tests

@FrankLeeeee
Copy link
Contributor

This PR can be merged if the unit test is ok.

@YuliangLiu0306
Copy link
Contributor Author

image

@YuliangLiu0306 YuliangLiu0306 merged commit 413c053 into hpcaitech:main Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants