Skip to content

Commit fbd6ba4

Browse files
bugfix in ILP init (#24)
1 parent 9a42108 commit fbd6ba4

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

include/osp/bsp/scheduler/IlpSchedulers/CoptFullScheduler.hpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -438,17 +438,20 @@ class CoptFullScheduler : public Scheduler<Graph_t> {
438438
}
439439
}
440440
}
441+
}
442+
}
441443

442-
for(unsigned step = 0; step < max_number_supersteps; step++){
443-
if(step < first_at[node][p1])
444-
model.SetMipStart(comm_processor_to_processor_superstep_node_var[p1][p1][step]
444+
for (const auto &node : DAG.vertices())
445+
for (unsigned proc = 0; proc < num_processors; proc++)
446+
for(unsigned step = 0; step < max_number_supersteps; step++)
447+
{
448+
if(step >= first_at[node][proc])
449+
model.SetMipStart(comm_processor_to_processor_superstep_node_var[proc][proc][step]
445450
[static_cast<int>(node)], 1);
446451
else
447-
model.SetMipStart(comm_processor_to_processor_superstep_node_var[p1][p1][step]
452+
model.SetMipStart(comm_processor_to_processor_superstep_node_var[proc][proc][step]
448453
[static_cast<int>(node)], 0);
449454
}
450-
}
451-
}
452455

453456
for (const auto &node : DAG.vertices()) {
454457

0 commit comments

Comments
 (0)