Commit 1a05cce8 authored by Paul's avatar Paul
Browse files

Fixes for tuning script

parent 885bdca6
...@@ -59,8 +59,8 @@ def benchmark_ck(config, tuning): ...@@ -59,8 +59,8 @@ def benchmark_ck(config, tuning):
for line in run_driver(b): for line in run_driver(b):
dtime = get_device_time(line) dtime = get_device_time(line)
print(dtime) print(dtime)
return dtime return float(dtime)
finally: except:
return sys.float_info.max return sys.float_info.max
...@@ -83,6 +83,7 @@ def benchmark_log(f, n): ...@@ -83,6 +83,7 @@ def benchmark_log(f, n):
result = [] result = []
for config in parse_log(f): for config in parse_log(f):
tuned = benchmark(config, n) tuned = benchmark(config, n)
print("Tuned:", tuned)
result.append([config, tuned]) result.append([config, tuned])
return result return result
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment