Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
superbenchmark
Commits
08317481
Unverified
Commit
08317481
authored
Jun 01, 2021
by
Yuting Jiang
Committed by
GitHub
Jun 01, 2021
Browse files
Benchmarks: Code Revision - add error return code for cublas microbenchmark (#90)
* add error return code for cublas micro benchmark
parent
40d7905e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
superbench/benchmarks/micro_benchmarks/cublas_function.py
superbench/benchmarks/micro_benchmarks/cublas_function.py
+2
-2
No files found.
superbench/benchmarks/micro_benchmarks/cublas_function.py
View file @
08317481
...
...
@@ -8,7 +8,7 @@ import json
import
yaml
from
superbench.common.utils
import
logger
from
superbench.benchmarks
import
Platform
,
BenchmarkRegistry
from
superbench.benchmarks
import
Platform
,
BenchmarkRegistry
,
ReturnCode
from
superbench.benchmarks.micro_benchmarks
import
MicroBenchmarkWithInvoke
...
...
@@ -241,7 +241,6 @@ class CublasBenchmark(MicroBenchmarkWithInvoke):
if
not
self
.
_args
.
config_json_str
:
for
config_dict
in
self
.
__default_params_dict_list
:
config_json_str
=
"
\'
"
+
json
.
dumps
(
config_dict
).
replace
(
' '
,
''
)
+
"
\'
"
print
(
config_json_str
)
complete_command
=
command
+
(
' --config_json '
)
+
config_json_str
self
.
_commands
.
append
(
complete_command
)
...
...
@@ -252,6 +251,7 @@ class CublasBenchmark(MicroBenchmarkWithInvoke):
self
.
_commands
.
append
(
complete_command
)
except
BaseException
as
e
:
logger
.
error
(
'Invalid input params - benchmark: {}, message: {}'
.
format
(
self
.
_name
,
str
(
e
)))
self
.
_result
.
set_return_code
(
ReturnCode
.
INVALID_ARGUMENT
)
return
False
return
True
...
...
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