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
Hide 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,22 +44,24 @@ def get_device_time(s):
def
benchmark_ck
(
config
,
tuning
):
b
=
{
'settings'
:
{
'iterations'
:
100
},
'compile_op'
:
{
'name'
:
'ck_gemm'
,
'check'
:
True
,
'tuning_val'
:
tuning
,
'inputs'
:
config
try
:
b
=
{
'settings'
:
{
'iterations'
:
100
},
'compile_op'
:
{
'name'
:
'ck_gemm'
,
'check'
:
True
,
'tuning_val'
:
tuning
,
'inputs'
:
config
}
}
}
for
line
in
run_driver
(
b
):
dtime
=
get_device_time
(
lin
e
)
print
(
dtime
)
return
dtime
return
sys
.
float_info
.
max
for
line
in
run_driver
(
b
):
dtime
=
get_device_time
(
line
)
print
(
dtim
e
)
return
dtime
finally
:
return
sys
.
float_info
.
max
def
benchmark
(
config
,
size
):
...
...
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