Skip to content

Commit 215a85b

Browse files
fixed errors
1 parent d0c1d57 commit 215a85b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/osp/bsp/model/MaxBspSchedule.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ class MaxBspSchedule : public BspSchedule<Graph_t> {
114114

115115
v_workw_t<Graph_t> costs = 0U;
116116
for (unsigned step = 0U; step < this->number_of_supersteps; step++) {
117-
const auto step_comm_cost = (step == 0U) ? 0U : max_comm_per_step[step - 1U];
118-
if (step_comm_cost > 0U) {
117+
v_commw_t<Graph_t> step_comm_cost = (step == 0U) ? static_cast<v_commw_t<Graph_t>>(0) : max_comm_per_step[step - 1U];
118+
if (step_comm_cost > static_cast<v_commw_t<Graph_t>>(0)) {
119119
step_comm_cost += this->instance->synchronisationCosts();
120120
}
121121
costs += std::max(step_comm_cost, max_work_per_step[step]);

include/osp/bsp/model/MaxBspScheduleCS.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ class MaxBspScheduleCS : public BspScheduleCS<Graph_t> {
108108

109109
v_workw_t<Graph_t> costs = 0U;
110110
for (unsigned step = 0U; step < this->number_of_supersteps; step++) {
111-
const auto step_comm_cost = (step == 0U) ? 0U : max_comm_per_step[step - 1U];
112-
if (step_comm_cost > 0U) {
111+
v_commw_t<Graph_t> step_comm_cost = (step == 0U) ? static_cast<v_commw_t<Graph_t>>(0) : max_comm_per_step[step - 1U];
112+
if (step_comm_cost > static_cast<v_commw_t<Graph_t>>(0)) {
113113
step_comm_cost += this->instance->synchronisationCosts();
114114
}
115115
costs += std::max(step_comm_cost, max_work_per_step[step]);

0 commit comments

Comments
 (0)