File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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]);
Original file line number Diff line number Diff 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]);
You can’t perform that action at this time.
0 commit comments