Skip to content
Snippets Groups Projects

Qt6 fixes and scheduler class started

Merged Oscar Gustafsson requested to merge add-list-scheduler into master
2 unresolved threads
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -1361,7 +1361,9 @@ class Scheduler:
for outports in prec_list[2:]:
# try all remaining operations for one time step
candidates = []
current_time -= 1
while len(candidates) == 0:
current_time += 1
for outport in outports:
remaining_op = outport.operation
op_is_ready_to_be_scheduled = True
@@ -1374,7 +1376,6 @@ class Scheduler:
if op_is_ready_to_be_scheduled:
candidates.append(remaining_op)
# sched._start_times[remaining_op.graph_id] = current_time
current_time += 1
sorted_candidates = sorted(
candidates, key=lambda candidate: candidate.latency
)
Loading