• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

daisytuner / sdfglib / 15613307699

12 Jun 2025 02:27PM UTC coverage: 61.1% (+0.2%) from 60.871%
15613307699

push

github

web-flow
Add thread barrier (#69)

* thread barrier definition

* define thread barrier dispatcher

* renameing

* refactor and node definition + serializer

* Constructor update

* integration analog to dispatcher registration

* add dispatcher test

* default dispatcher simplification

* simplify test

* Public symbol definition

64 of 95 new or added lines in 11 files covered. (67.37%)

4 existing lines in 2 files now uncovered.

6641 of 10869 relevant lines covered (61.1%)

99.73 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

78.57
/src/serializer/library_nodes/barrier_local_node_serializer.cpp
1
#include "sdfg/serializer/library_nodes/barrier_local_node_serializer.h"
2

3
#include "sdfg/data_flow/barrier_local_node.h"
4

5
namespace sdfg {
6
namespace serializer {
7

8
nlohmann::json BarrierLocalNodeSerializer::serialize(
1✔
9
    const sdfg::data_flow::LibraryNode& library_node) {
10
    if (library_node.code() != data_flow::BARRIER_LOCAL) {
1✔
NEW
11
        throw std::runtime_error("Invalid library node code");
×
12
    }
13
    nlohmann::json j;
1✔
14
    j["code"] = std::string(library_node.code().value());
1✔
15
    return j;
1✔
16
}
1✔
17

18
data_flow::LibraryNode& BarrierLocalNodeSerializer::deserialize(
1✔
19
    const nlohmann::json& j, sdfg::builder::StructuredSDFGBuilder& builder,
20
    sdfg::structured_control_flow::Block& parent) {
21
    auto code = j["code"].get<std::string_view>();
1✔
22
    if (code != data_flow::BARRIER_LOCAL.value()) {
1✔
NEW
23
        throw std::runtime_error("Invalid library node code");
×
24
    }
25
    return builder.add_library_node<data_flow::BarrierLocalNode>(parent, data_flow::BARRIER_LOCAL,
2✔
26
                                                                 {}, {}, false);
1✔
NEW
27
};
×
28

29
}  // namespace serializer
30
}  // namespace sdfg
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc