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

daisytuner / sdfglib / 18318341707

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

push

github

web-flow
Merge pull request #262 from daisytuner/tasklets

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

0.0
/src/data_flow/library_nodes/math/ml/pow.cpp
1
#include "sdfg/data_flow/library_nodes/math/ml/pow.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
PowNode::PowNode(
×
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
)
NEW
21
    : ElementWiseBinaryNode(element_id, debug_info, vertex, parent, LibraryNodeType_Pow, shape) {}
×
22

23
bool PowNode::expand_operation(
×
24
    builder::StructuredSDFGBuilder& builder,
25
    analysis::AnalysisManager& analysis_manager,
26
    structured_control_flow::Sequence& body,
27
    const std::string& input_name_a,
28
    const std::string& input_name_b,
29
    const std::string& output_name,
30
    const types::IType& input_type_a,
31
    const types::IType& input_type_b,
32
    const types::IType& output_type,
33
    const data_flow::Subset& subset
34
) {
35
    // Add code
36
    auto& code_block = builder.add_block(body);
×
37
    auto& input_node_a = builder.add_access(code_block, input_name_a);
×
38
    auto& input_node_b = builder.add_access(code_block, input_name_b);
×
39
    auto& output_node = builder.add_access(code_block, output_name);
×
40
    
NEW
41
    auto& tasklet = builder.add_library_node<math::IntrinsicNode>(code_block, code_block.debug_info(), "powf", 1);
×
42
    
43
    builder.add_computational_memlet(code_block, input_node_a, tasklet, "_in1", subset, input_type_a);
×
44
    builder.add_computational_memlet(code_block, input_node_b, tasklet, "_in2", subset, input_type_b);
×
45
    builder.add_computational_memlet(code_block, tasklet, "_out", output_node, subset, output_type);
×
46

47
    return true;
×
48
}
×
49

50
std::unique_ptr<data_flow::DataFlowNode> PowNode::
51
    clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph& parent) const {
×
52
    return std::unique_ptr<
×
53
        data_flow::DataFlowNode>(new PowNode(element_id, this->debug_info(), vertex, parent, this->shape_));
×
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