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

daisytuner / sdfglib / 18318176242

07 Oct 2025 03:42PM UTC coverage: 61.593% (+0.5%) from 61.066%
18318176242

Pull #262

github

web-flow
Merge 98864a558 into 82460a9ec
Pull Request #262: Tasklets, Intrinsics and Library Nodes

84 of 418 new or added lines in 29 files covered. (20.1%)

153 existing lines in 17 files now uncovered.

8979 of 14578 relevant lines covered (61.59%)

103.69 hits per line

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

29.41
/src/data_flow/library_nodes/math/ml/relu.cpp
1
#include "sdfg/data_flow/library_nodes/math/ml/relu.h"
2

3
#include "sdfg/analysis/analysis.h"
4
#include "sdfg/builder/structured_sdfg_builder.h"
5

6
#include "sdfg/analysis/scope_analysis.h"
7

8
#include "sdfg/data_flow/library_nodes/math/intrinsic.h"
9

10
namespace sdfg {
11
namespace math {
12
namespace ml {
13

14
ReLUNode::ReLUNode(
3✔
15
    size_t element_id,
16
    const DebugInfo& debug_info,
17
    const graph::Vertex vertex,
18
    data_flow::DataFlowGraph& parent,
19
    const std::vector<symbolic::Expression>& shape
20
)
21
    : ElementWiseUnaryNode(element_id, debug_info, vertex, parent, LibraryNodeType_ReLU, shape) {}
3✔
22

UNCOV
23
bool ReLUNode::expand_operation(
×
24
    builder::StructuredSDFGBuilder& builder,
25
    analysis::AnalysisManager& analysis_manager,
26
    structured_control_flow::Sequence& body,
27
    const std::string& input_name,
28
    const std::string& output_name,
29
    const types::IType& input_type,
30
    const types::IType& output_type,
31
    const data_flow::Subset& subset
32
) {
33
    // Add code
UNCOV
34
    types::Scalar base_type(input_type.primitive_type());
×
35

UNCOV
36
    auto& code_block = builder.add_block(body);
×
UNCOV
37
    auto& input_node_new = builder.add_access(code_block, input_name);
×
UNCOV
38
    auto& output_node_new = builder.add_access(code_block, output_name);
×
UNCOV
39
    auto& zero_node = builder.add_constant(code_block, "0.0", base_type);
×
40
    
NEW
41
    auto& tasklet = builder.add_library_node<math::IntrinsicNode>(code_block, code_block.debug_info(), "fmax", 2);
×
42
    
UNCOV
43
    builder.add_computational_memlet(code_block, zero_node, tasklet, "_in1", {}, base_type);
×
UNCOV
44
    builder.add_computational_memlet(code_block, input_node_new, tasklet, "_in2", subset, input_type);
×
UNCOV
45
    builder.add_computational_memlet(code_block, tasklet, "_out", output_node_new, subset, output_type);
×
46

47
    return true;
UNCOV
48
}
×
49

50
std::unique_ptr<data_flow::DataFlowNode> ReLUNode::
51
    clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph& parent) const {
1✔
52
    return std::unique_ptr<
1✔
53
        data_flow::DataFlowNode>(new ReLUNode(element_id, this->debug_info(), vertex, parent, this->shape_));
1✔
54
}
×
55

56
} // namespace ml
57
} // namespace math
58
} // 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