Skip to content

Commit 6fce07f

Browse files
committed
switch to ERROR_METRIC on failed trials
Signed-off-by: Jeff Ng <[email protected]>
1 parent 44ad745 commit 6fce07f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/AutoTuner/src/autotuner/distributed.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def evaluate(self, metrics):
175175
error = "ERR" in metrics.values()
176176
not_found = "N/A" in metrics.values()
177177
if error or not_found:
178-
return (ERROR_METRIC, "-", "-", "-")
178+
return (ERROR_METRIC, ERROR_METRIC, ERROR_METRIC, ERROR_METRIC)
179179
effective_clk_period = metrics["clk_period"] - metrics["worst_slack"]
180180
num_drc = metrics["num_drc"]
181181
gamma = effective_clk_period / 10
@@ -248,7 +248,7 @@ def evaluate(self, metrics):
248248
error = "ERR" in metrics.values() or "ERR" in reference.values()
249249
not_found = "N/A" in metrics.values() or "N/A" in reference.values()
250250
if error or not_found:
251-
return (ERROR_METRIC, "-", "-", "-")
251+
return (ERROR_METRIC, ERROR_METRIC, ERROR_METRIC, ERROR_METRIC)
252252
ppa = self.get_ppa(metrics)
253253
gamma = ppa / 10
254254
score = ppa * (self.step_ / 100) ** (-1) + (gamma * metrics["num_drc"])

0 commit comments

Comments
 (0)