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
b9ce9f10
Commit
b9ce9f10
authored
Oct 19, 2022
by
umangyadav
Browse files
tidy, cppcheck fix
parent
38e5c863
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
src/targets/gpu/include/migraphx/gpu/context.hpp
src/targets/gpu/include/migraphx/gpu/context.hpp
+7
-9
No files found.
src/targets/gpu/include/migraphx/gpu/context.hpp
View file @
b9ce9f10
...
@@ -274,7 +274,9 @@ struct context
...
@@ -274,7 +274,9 @@ struct context
auto
v_streams
=
v
.
at
(
"streams"
);
auto
v_streams
=
v
.
at
(
"streams"
);
std
::
size_t
n_streams
=
v_streams
.
without_key
().
to
<
std
::
size_t
>
();
std
::
size_t
n_streams
=
v_streams
.
without_key
().
to
<
std
::
size_t
>
();
this
->
current_device
=
std
::
make_shared
<
hip_device
>
(
0
,
n_streams
);
#ifdef MIGRAPHX_HAS_FIND_2_API
{
auto
v_gfx_arch
=
v
.
at
(
"gfx_arch"
).
to
<
std
::
string
>
();
auto
v_gfx_arch
=
v
.
at
(
"gfx_arch"
).
to
<
std
::
string
>
();
auto
v_cu_count
=
v
.
at
(
"cu_count"
);
auto
v_cu_count
=
v
.
at
(
"cu_count"
);
...
@@ -282,10 +284,6 @@ struct context
...
@@ -282,10 +284,6 @@ struct context
std
::
string
v_miopen_version
=
v
.
at
(
"miopen_version"
).
to
<
std
::
string
>
();
std
::
string
v_miopen_version
=
v
.
at
(
"miopen_version"
).
to
<
std
::
string
>
();
this
->
current_device
=
std
::
make_shared
<
hip_device
>
(
0
,
n_streams
);
#ifdef MIGRAPHX_HAS_FIND_2_API
{
std
::
string
current_gfx_arch
=
this
->
current_device
->
get_device_name
();
std
::
string
current_gfx_arch
=
this
->
current_device
->
get_device_name
();
std
::
size_t
current_cu_count
=
this
->
current_device
->
get_cu_count
();
std
::
size_t
current_cu_count
=
this
->
current_device
->
get_cu_count
();
std
::
string
current_miopen_version
=
get_miopen_version
();
std
::
string
current_miopen_version
=
get_miopen_version
();
...
...
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