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

daisytuner / sdfglib / 16069945621

04 Jul 2025 08:56AM UTC coverage: 64.375% (-0.2%) from 64.606%
16069945621

push

github

web-flow
Merge pull request #137 from daisytuner/clang-format

runs clang-format on codebase

609 of 827 new or added lines in 63 files covered. (73.64%)

46 existing lines in 30 files now uncovered.

8578 of 13325 relevant lines covered (64.38%)

177.24 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

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

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

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

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

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

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

© 2025 Coveralls, Inc