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
62bc59f3
Commit
62bc59f3
authored
Apr 17, 2019
by
Shucai Xiao
Browse files
fix review comments.
parent
29865b9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/targets/gpu/adjust_allocation.cpp
src/targets/gpu/adjust_allocation.cpp
+4
-0
src/targets/gpu/include/migraphx/gpu/adjust_allocation.hpp
src/targets/gpu/include/migraphx/gpu/adjust_allocation.hpp
+0
-1
No files found.
src/targets/gpu/adjust_allocation.cpp
View file @
62bc59f3
...
...
@@ -12,6 +12,10 @@ void adjust_allocation::apply(program& p) const
{
for
(
auto
ins
:
iterator_for
(
p
))
{
// skip instruction with no input
if
(
ins
->
inputs
().
empty
())
continue
;
if
(
ins
->
name
()
==
"load"
)
continue
;
...
...
src/targets/gpu/include/migraphx/gpu/adjust_allocation.hpp
View file @
62bc59f3
...
...
@@ -12,7 +12,6 @@ namespace gpu {
struct
adjust_allocation
{
context
*
ctx
=
nullptr
;
std
::
string
name
()
const
{
return
"gpu::adjust_allocation"
;
}
void
apply
(
program
&
p
)
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