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] Optimize StateFlowGraph::optimize_listgen #1894

Merged
merged 5 commits into from
Sep 26, 2020

Conversation

yuanming-hu
Copy link
Member

@yuanming-hu yuanming-hu commented Sep 26, 2020

Related issue = #742

StateFlowGraph::optimize_listgen now does more job each iteration. Previously it very conservatively breaks after modifying a single SFG node. This change also seems to eliminate more ClearListStmt for some reason. After this change optimize_listgen is ~2x faster on mgpcg.

Offtopic change: the CUDA profiler now returns a handle when calling start_with_handle(). We need the handle (which is essentially a CUDA event pointer) to mark the end of a kernel launch.

[Click here for the format server]


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!

@codecov
Copy link

codecov bot commented Sep 26, 2020

Codecov Report

Merging #1894 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1894   +/-   ##
=======================================
  Coverage   43.81%   43.81%           
=======================================
  Files          45       45           
  Lines        6174     6174           
  Branches     1097     1097           
=======================================
  Hits         2705     2705           
  Misses       3300     3300           
  Partials      169      169           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6ac1a54...216440e. Read the comment docs.

Copy link
Contributor

@xumingkuan xumingkuan left a comment

Choose a reason for hiding this comment

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

LGTM!

@xumingkuan xumingkuan merged commit f3fb6d7 into taichi-dev:master Sep 26, 2020
@yuanming-hu yuanming-hu mentioned this pull request Sep 26, 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.

3 participants