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
424b58b4
Commit
424b58b4
authored
Oct 20, 2022
by
Paul
Browse files
Catch exception
parent
19bf60bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
15 deletions
+17
-15
tools/tune_ck.py
tools/tune_ck.py
+17
-15
No files found.
tools/tune_ck.py
View file @
424b58b4
...
@@ -44,6 +44,7 @@ def get_device_time(s):
...
@@ -44,6 +44,7 @@ def get_device_time(s):
def
benchmark_ck
(
config
,
tuning
):
def
benchmark_ck
(
config
,
tuning
):
try
:
b
=
{
b
=
{
'settings'
:
{
'settings'
:
{
'iterations'
:
100
'iterations'
:
100
...
@@ -59,6 +60,7 @@ def benchmark_ck(config, tuning):
...
@@ -59,6 +60,7 @@ def benchmark_ck(config, tuning):
dtime
=
get_device_time
(
line
)
dtime
=
get_device_time
(
line
)
print
(
dtime
)
print
(
dtime
)
return
dtime
return
dtime
finally
:
return
sys
.
float_info
.
max
return
sys
.
float_info
.
max
...
...
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