Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
1a05cce8
Commit
1a05cce8
authored
Oct 29, 2022
by
Paul
Browse files
Fixes for tuning script
parent
885bdca6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tools/tune_ck.py
tools/tune_ck.py
+3
-2
No files found.
tools/tune_ck.py
View file @
1a05cce8
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment