Skip to content

Commit 3453e5f

Browse files
more fixes
1 parent 7c267ec commit 3453e5f

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

include/osp/bsp/model/MaxBspScheduleCS.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class MaxBspScheduleCS : public BspScheduleCS<Graph_t> {
7070
this->setAutoCommunicationSchedule();
7171
}
7272

73-
MaxBspScheduleCS(const MaxBspSchedule<Graph_t> &&schedule) : BspScheduleCS<Graph_t>(std::move(schedule)) {
73+
MaxBspScheduleCS(MaxBspSchedule<Graph_t> &&schedule) : BspScheduleCS<Graph_t>(std::move(schedule)) {
7474
this->setAutoCommunicationSchedule();
7575
}
7676

include/osp/bsp/scheduler/GreedySchedulers/BspToMaxBspConverter.hpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,7 @@ template<typename Graph_t>
5252
MaxBspSchedule<Graph_t> GreedyBspToMaxBspConverter<Graph_t>::Convert(const BspSchedule<Graph_t>& schedule) const
5353
{
5454
BspScheduleCS<Graph_t> schedule_cs(schedule);
55-
MaxBspScheduleCS<Graph_t> schedule_max = Convert(schedule_cs);
56-
MaxBspSchedule<Graph_t> final_schedule(schedule.getInstance());
57-
for (vertex_idx node = 0; node < schedule.getInstance().numberOfVertices(); node++)
58-
{
59-
final_schedule.setAssignedProcessor(node, schedule_max.assignedProcessor(node));
60-
final_schedule.setAssignedSuperstep(node, schedule_max.assignedSuperstep(node));
61-
}
62-
return final_schedule;
55+
return Convert(schedule_cs);
6356
}
6457

6558
template<typename Graph_t>

0 commit comments

Comments
 (0)