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

[async] Compact AsyncState id for faster SFG rebuilding #2071

Merged
merged 4 commits into from
Nov 30, 2020

Conversation

yuanming-hu
Copy link
Member

@yuanming-hu yuanming-hu commented Nov 30, 2020

Related issue = #742

Before:

  • synchronize: 4.281
    • rebuild_graph in optimize_listgen: 0.799

After:

  • synchronize: 3.996 (1.07x faster)
    • rebuild_graph in optimize_listgen: 0.714 (1.12x faster)

Sorry about the potential conflict with #2070. Let's merge #2070 first and I'll fix the conflicts here on my own.

The design is probably not elegant yet at this point, but let's first get the desired performance and then aim for elegance.

[Click here for the format server]


@yuanming-hu yuanming-hu requested a review from k-ye November 30, 2020 00:56
Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Let's merge #2070 first and I'll fix the conflicts here on my own.

Thanks! Actually i feel like #2070 might still take a while... Please feel free to merge this one first :)

taichi/program/state_flow_graph.cpp Show resolved Hide resolved
Copy link
Member Author

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Actually i feel like #2070 might still take a while... Please feel free to merge this one first :)

OK sounds good... Let me merge this one now and we can chat about #2070 tomorrow :-) Thanks!

taichi/program/state_flow_graph.cpp Show resolved Hide resolved
@yuanming-hu yuanming-hu merged commit 5e6e1bd into taichi-dev:master Nov 30, 2020
@yuanming-hu yuanming-hu deleted the async-state-compact branch November 30, 2020 15:55
@yuanming-hu yuanming-hu mentioned this pull request Nov 30, 2020
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