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
059fa4cc
Commit
059fa4cc
authored
May 26, 2023
by
Paul
Browse files
Format
parent
c027803e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
5 deletions
+2
-5
src/targets/gpu/device_name.cpp
src/targets/gpu/device_name.cpp
+1
-4
src/targets/gpu/include/migraphx/gpu/context.hpp
src/targets/gpu/include/migraphx/gpu/context.hpp
+1
-1
No files found.
src/targets/gpu/device_name.cpp
View file @
059fa4cc
...
@@ -43,10 +43,7 @@ auto get_arch_name(rank<1>, const HipDeviceProp& props) -> decltype(std::string(
...
@@ -43,10 +43,7 @@ auto get_arch_name(rank<1>, const HipDeviceProp& props) -> decltype(std::string(
return
std
::
string
(
props
.
gcnArchName
);
return
std
::
string
(
props
.
gcnArchName
);
}
}
std
::
string
get_arch_name
(
const
hipDeviceProp_t
&
props
)
std
::
string
get_arch_name
(
const
hipDeviceProp_t
&
props
)
{
return
get_arch_name
(
rank
<
1
>
{},
props
);
}
{
return
get_arch_name
(
rank
<
1
>
{},
props
);
}
int
get_device_id
()
int
get_device_id
()
{
{
...
...
src/targets/gpu/include/migraphx/gpu/context.hpp
View file @
059fa4cc
...
@@ -171,7 +171,7 @@ struct hip_device
...
@@ -171,7 +171,7 @@ struct hip_device
std
::
size_t
stream_id
()
const
{
return
current_stream
;
}
std
::
size_t
stream_id
()
const
{
return
current_stream
;
}
std
::
string
get_device_name
()
const
{
return
get_arch_name
(
device_props
);
}
std
::
string
get_device_name
()
const
{
return
get_arch_name
(
device_props
);
}
std
::
string
get_gfx_name
()
const
{
return
trim
(
split_string
(
get_device_name
(),
':'
).
front
());
}
std
::
string
get_gfx_name
()
const
{
return
trim
(
split_string
(
get_device_name
(),
':'
).
front
());
}
std
::
size_t
get_device_major
()
const
{
return
device_props
.
major
;
}
std
::
size_t
get_device_major
()
const
{
return
device_props
.
major
;
}
...
...
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