Skip to content

Commit

Permalink
tdg written in right order
Browse files Browse the repository at this point in the history
  • Loading branch information
littlemine committed Apr 3, 2024
1 parent 26ec7e0 commit 195bb30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions projects/CUDA/graph/Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,9 @@ struct WriteTaskDependencyGraph : INode {
return;
records.insert(node);

for (auto &&[tag, node] : node->deps)
process_node(jsons, node.get(), records);

Json json;
json["name"] = node->tag;
json["cmds"] = node->workItems;
Expand All @@ -253,9 +256,6 @@ struct WriteTaskDependencyGraph : INode {
Json j;
j[node->tag] = json;
jsons.push_back(j);

for (auto &&[tag, node] : node->deps)
process_node(jsons, node.get(), records);
}
void apply() override {
std::vector<WorkNode *> nodes;
Expand Down

0 comments on commit 195bb30

Please sign in to comment.