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

daisytuner / sdfglib / 16416635235

21 Jul 2025 12:12PM UTC coverage: 65.094% (-0.01%) from 65.106%
16416635235

push

github

web-flow
Merge pull request #154 from daisytuner/stabilize-replay

Stabilize replay

18 of 34 new or added lines in 8 files covered. (52.94%)

1 existing line in 1 file now uncovered.

8804 of 13525 relevant lines covered (65.09%)

176.51 hits per line

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

28.57
/src/transformations/parallelization.cpp
1
#include "sdfg/transformations/parallelization.h"
2
#include <stdexcept>
3

4
namespace sdfg {
5
namespace transformations {
6

7
Parallelization::Parallelization(structured_control_flow::Map& map) : map_(map) {}
2✔
8

9
std::string Parallelization::name() const { return "Parallelization"; }
×
10

11
bool Parallelization::can_be_applied(builder::StructuredSDFGBuilder& builder, analysis::AnalysisManager& analysis_manager) {
2✔
12
    return map_.schedule_type() == structured_control_flow::ScheduleType_Sequential;
2✔
13
}
14

15
void Parallelization::apply(builder::StructuredSDFGBuilder& builder, analysis::AnalysisManager& analysis_manager) {
2✔
16
    this->map_.schedule_type() = structured_control_flow::ScheduleType_CPU_Parallel;
2✔
17
}
2✔
18

19
void Parallelization::to_json(nlohmann::json& j) const {
×
20
    j["transformation_type"] = this->name();
×
21
    j["map_element_id"] = map_.element_id();
×
22
}
×
23

24
Parallelization Parallelization::from_json(builder::StructuredSDFGBuilder& builder, const nlohmann::json& desc) {
×
25
    auto map_id = desc["map_element_id"].get<size_t>();
×
26
    auto element = builder.find_element_by_id(map_id);
×
NEW
27
    if (element == nullptr) {
×
NEW
28
        throw std::runtime_error("Element with ID " + std::to_string(map_id) + " not found.");
×
29
    }
30

NEW
31
    auto loop = dynamic_cast<structured_control_flow::Map*>(element);
×
32

NEW
33
    if (loop == nullptr) {
×
NEW
34
        throw std::runtime_error("Element with ID " + std::to_string(map_id) + " is not a Map.");
×
35
    }
36

NEW
37
    return Parallelization(*loop);
×
UNCOV
38
}
×
39

40
} // namespace transformations
41
} // 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