Skip to content

Commit a2e7202

Browse files
committed
Fix validation-test for multiple lower bounds
1 parent e087e9e commit a2e7202

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/misc/validation-test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def extract_dag_info(logs: Logs) -> Dict[str, List[List[DagInfo]]]:
125125
is_optimal = best_result['optimal']
126126
except KeyError:
127127
try:
128-
best_result = block.single('HeuristicResult')
128+
best_result = block['HeuristicResult'][-1]
129129
is_optimal = best_result['cost'] == 0 or \
130130
'INFO: Marking SLIL list schedule as optimal due to zero PERP.' in block.raw_log
131131
except KeyError:
@@ -138,7 +138,7 @@ def extract_dag_info(logs: Logs) -> Dict[str, List[List[DagInfo]]]:
138138
benchmark=block.benchmark,
139139
num_instructions=block.single('ProcessDag')['num_instructions'],
140140
pass_num=pass_num(block),
141-
lower_bound=block.single('CostLowerBound')['cost'],
141+
lower_bound=block['CostLowerBound'][-1]['cost'],
142142
relative_cost=best_result['cost'],
143143
length=best_result['length'],
144144
is_optimal=is_optimal,

0 commit comments

Comments
 (0)