Skip to content
Snippets Groups Projects
Commit 980170f1 authored by Simon Bjurek's avatar Simon Bjurek
Browse files

earliest deadline, first version working, needs testing

parent c6c95908
Branches
No related tags found
2 merge requests!461Finalize earliest deadline scheduler,!459Qt6 fixes and scheduler class started
Pipeline #154572 failed
......@@ -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
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment