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] Partial SFG node GC (keep latest state writers/readers) #1915

Merged
merged 25 commits into from
Oct 4, 2020
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
6f4b828
Separate SFG::extract() into rebuild_graph() and extract_to_execute()
xumingkuan Oct 1, 2020
835ba5c
Add declaration of SFG::fuse_range()
xumingkuan Oct 1, 2020
178ec38
Add SFGNode::executed and update verify()
xumingkuan Oct 2, 2020
55900a5
modify topo_sort_nodes()
xumingkuan Oct 2, 2020
e329bf8
Fix verify and topo sort
xumingkuan Oct 2, 2020
53f0ceb
modify compute_transitive_closure()
xumingkuan Oct 2, 2020
1ddebe5
Modify fuse() (implement fuse_range())
xumingkuan Oct 2, 2020
c56deb5
Fix compute_transitive_closure and let reid_pending_nodes() set pendi…
xumingkuan Oct 2, 2020
8e6f543
Modify optimize_dead_store() and add some assertions
xumingkuan Oct 2, 2020
b709931
Fix fuse_range()
xumingkuan Oct 2, 2020
f885652
Modify fuse() to make optimize_listgen() work?
xumingkuan Oct 2, 2020
c691248
[skip ci] code format
xumingkuan Oct 2, 2020
dbaf5e4
[skip ci] test
xumingkuan Oct 2, 2020
da2a0f2
Change fuse_range's return type to std::unordered_set<int> to reduce …
xumingkuan Oct 2, 2020
0dc2afd
Revert changes on logic of fuse() in this PR
xumingkuan Oct 2, 2020
2728352
Merge branch 'master' into sfg-gc
xumingkuan Oct 2, 2020
f0ddd3c
Fix compilation error
xumingkuan Oct 2, 2020
c7aa2ec
use get_pending_tasks()
xumingkuan Oct 2, 2020
159f6aa
[skip ci] TI_AUTO_PROF for insert_task
xumingkuan Oct 2, 2020
bc6f17f
[skip ci] TI_AUTO_PROF
xumingkuan Oct 2, 2020
556e707
Apply review suggestions
xumingkuan Oct 3, 2020
da674af
Apply review suggestions and make SFG::verify() const
xumingkuan Oct 3, 2020
38608ee
Fix tests: add reid_pending_nodes() to topo_sort_nodes()
xumingkuan Oct 3, 2020
5ff1ce5
Fix L1017
xumingkuan Oct 4, 2020
2b1b903
update profiler name
xumingkuan Oct 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion taichi/program/async_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void AsyncEngine::synchronize() {
sfg->verify();
}
debug_sfg("final");
auto tasks = sfg->extract();
auto tasks = sfg->extract_to_execute();
TI_TRACE("Ended up with {} nodes", tasks.size());
for (auto &task : tasks) {
queue.enqueue(task);
Expand Down
Loading