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

daisytuner / sdfglib / 15829336677

23 Jun 2025 04:06PM UTC coverage: 64.191% (-0.002%) from 64.193%
15829336677

push

github

web-flow
Merge pull request #101 from daisytuner/auto-parallelization

Auto parallelization

18 of 42 new or added lines in 3 files covered. (42.86%)

8219 of 12804 relevant lines covered (64.19%)

135.84 hits per line

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

40.0
/src/transformations/parallelization.cpp
1
#include "sdfg/transformations/parallelization.h"
2

3
namespace sdfg {
4
namespace transformations {
5

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

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

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

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

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

NEW
25
Parallelization Parallelization::from_json(builder::StructuredSDFGBuilder& builder,
×
26
                                           const nlohmann::json& desc) {
NEW
27
    auto map_id = desc["map_element_id"].get<size_t>();
×
NEW
28
    auto element = builder.find_element_by_id(map_id);
×
NEW
29
    return Parallelization(*dynamic_cast<structured_control_flow::Map*>(element));
×
30
}
31

32
}  // namespace transformations
33
}  // 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