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

Set up graph_query testing infrastructure for task graph #325

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

psalz
Copy link
Member

@psalz psalz commented Dec 23, 2024

This brings the TDAG (mostly) in line with CDAG and IDAG. What's missing is a hierarchical structure for task_record, but since unlike for commands and instructions, a call to submit() only creates a single task (except for horizons) it turns out we don't really need this functionality anyway.

Copy link

Check-perf-impact results: (000e2892abb21ddd1ae413a5c86d7d95)

❓ No new benchmark data submitted. ❓
Please re-run the microbenchmarks and include the results if your commit could potentially affect performance.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

⚠️ Clang-Tidy found issue(s) with the introduced code (1/1)

fmt::format_to(std::back_inserter(dot), "{}->{}[{}];", d.node, tsk.tid, dependency_style(d.kind, d.origin));
}
for(const auto& tsk : recorder.get_graph_nodes()) {
const char* shape = tsk->type == task_type::epoch || tsk->type == task_type::horizon ? "ellipse" : "box style=rounded";

Choose a reason for hiding this comment

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

⚠️ misc-const-correctness ⚠️
variable shape of type const char * can be declared const

template <int Dims, typename Handler, typename Functor>
void dispatch_get_access(test_utils::mock_buffer<Dims>& mb, Handler& handler, access_mode mode, Functor rmfn) {
template <typename Builder, int Dims, typename Functor>
auto dispatch_get_access(Builder&& builder, test_utils::mock_buffer<Dims>& mb, access_mode mode, Functor rmfn) {

Choose a reason for hiding this comment

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

⚠️ cppcoreguidelines-missing-std-forward ⚠️
forwarding reference parameter builder is never forwarded inside the function body

}

[[maybe_unused]] const task_id tid_8 =
test_utils::add_host_task(tt.tm, on_master_node, [&](handler& cgh) { buf_b.get_access<access_mode::read_write>(cgh, fixed<1>({0, 128})); });
const auto tid_8 = tctx.master_node_host_task().read_write(buf_b, fixed<1>({0, 128})).submit();

Choose a reason for hiding this comment

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

⚠️ clang-analyzer-deadcode.DeadStores ⚠️
Value stored to tid_8 during its initialization is never read

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12467490376

Details

  • 33 of 33 (100.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 95.04%

Totals Coverage Status
Change from base Build 12390656669: -0.01%
Covered Lines: 7088
Relevant Lines: 7192

💛 - Coveralls

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