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
b688bf6a
Commit
b688bf6a
authored
Jun 20, 2022
by
Khalique Ahmed
Browse files
remove sync device and other tags
parent
1d0f8ead
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
38 deletions
+1
-38
examples/migraphx/migraphx_driver/README.md
examples/migraphx/migraphx_driver/README.md
+0
-1
src/targets/gpu/hip.cpp
src/targets/gpu/hip.cpp
+0
-1
src/targets/gpu/include/migraphx/gpu/hip.hpp
src/targets/gpu/include/migraphx/gpu/hip.hpp
+1
-36
No files found.
examples/migraphx/migraphx_driver/README.md
View file @
b688bf6a
...
...
@@ -200,7 +200,6 @@ hip::copy_from_gpu
hip::copy_to_gpu
hip::hip_allocate_memory
hip::hip_copy_literal
hip::sync_device
identity
im2col
leaky_relu
...
...
src/targets/gpu/hip.cpp
View file @
b688bf6a
...
...
@@ -14,7 +14,6 @@ inline namespace MIGRAPHX_INLINE_NS {
namespace
gpu
{
MIGRAPHX_REGISTER_OP
(
hip_allocate
)
MIGRAPHX_REGISTER_OP
(
hip_sync_device
)
MIGRAPHX_REGISTER_OP
(
hip_sync_stream
)
MIGRAPHX_REGISTER_OP
(
hip_copy_to_gpu
)
MIGRAPHX_REGISTER_OP
(
hip_copy_from_gpu
)
...
...
src/targets/gpu/include/migraphx/gpu/hip.hpp
View file @
b688bf6a
...
...
@@ -36,12 +36,11 @@ argument get_preallocation(context& ctx, const std::string& id);
struct
hip_allocate
{
shape
s
;
std
::
string
tag
{};
template
<
class
Self
,
class
F
>
static
auto
reflect
(
Self
&
self
,
F
f
)
{
return
pack
(
f
(
self
.
s
,
"shape"
)
,
f
(
self
.
tag
,
"tag"
)
);
return
pack
(
f
(
self
.
s
,
"shape"
));
}
std
::
string
name
()
const
{
return
"hip::allocate"
;
}
...
...
@@ -56,42 +55,8 @@ struct hip_allocate
}
};
struct
hip_sync_device
{
std
::
string
tag
{};
template
<
class
Self
,
class
F
>
static
auto
reflect
(
Self
&
self
,
F
f
)
{
return
pack
(
f
(
self
.
tag
,
"tag"
));
}
std
::
string
name
()
const
{
return
"hip::sync_device"
;
}
shape
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
{
if
(
inputs
.
empty
())
return
{};
return
inputs
.
front
();
}
argument
compute
(
context
&
,
const
shape
&
,
const
std
::
vector
<
argument
>&
args
)
const
{
gpu_sync
();
if
(
args
.
empty
())
return
{};
return
args
.
front
();
}
};
struct
hip_sync_stream
{
std
::
string
tag
{};
template
<
class
Self
,
class
F
>
static
auto
reflect
(
Self
&
self
,
F
f
)
{
return
pack
(
f
(
self
.
tag
,
"tag"
));
}
std
::
string
name
()
const
{
return
"hip::sync_stream"
;
}
shape
compute_shape
(
const
std
::
vector
<
shape
>&
inputs
)
const
...
...
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