"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "c527d0b5cbb4871b625a9b4bb2f229604672310a"
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):
for line in run_driver(b):
dtime = get_device_time(line)
print(dtime)
return dtime
finally:
return float(dtime)
except:
return sys.float_info.max
......@@ -83,6 +83,7 @@ def benchmark_log(f, n):
result = []
for config in parse_log(f):
tuned = benchmark(config, n)
print("Tuned:", tuned)
result.append([config, tuned])
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