Skip to content
Snippets Groups Projects
Commit b145871a authored by Mikael Henriksson's avatar Mikael Henriksson :runner:
Browse files

resources.py: default all heuristics to left_edge

parent 8a028e82
No related branches found
No related tags found
1 merge request!430Add `split_ports_sequentially()`, left-edge based `split_on_ports()`, and always default to the left-edge heuristic
Pipeline #103127 failed
......@@ -848,7 +848,7 @@ class ProcessCollection:
def split_on_execution_time(
self,
heuristic: str = "graph_color",
heuristic: str = "left_edge",
coloring_strategy: str = "saturation_largest_first",
) -> List["ProcessCollection"]:
"""
......
......@@ -77,7 +77,7 @@ class TestProcessCollectionPlainMemoryVariable:
collection = generate_matrix_transposer(4, min_lifetime=5)
assignment_left_edge = collection._left_edge_assignment()
assignment_graph_color = collection.split_on_execution_time(
coloring_strategy='saturation_largest_first'
heuristic="graph_color", coloring_strategy='saturation_largest_first'
)
assert len(assignment_left_edge) == 18
assert len(assignment_graph_color) == 16
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment