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
9fed6960
"...THC/git@developer.sourcefind.cn:OpenDAS/torch-cluster.git" did not exist on "5bae8a858689c2ac760b4db51f8a33142932d892"
Commit
9fed6960
authored
Aug 18, 2018
by
Paul
Browse files
Formatting
parent
9164116a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/targets/gpu/eliminate_allocation.cpp
src/targets/gpu/eliminate_allocation.cpp
+2
-2
No files found.
src/targets/gpu/eliminate_allocation.cpp
View file @
9fed6960
...
@@ -25,8 +25,8 @@ void eliminate_allocation::apply(program& p) const
...
@@ -25,8 +25,8 @@ void eliminate_allocation::apply(program& p) const
auto
mem
=
p
.
add_parameter
(
"memory"
,
shape
{
shape
::
int8_type
,
{
n
}});
auto
mem
=
p
.
add_parameter
(
"memory"
,
shape
{
shape
::
int8_type
,
{
n
}});
for
(
auto
&&
pp
:
allocs
)
for
(
auto
&&
pp
:
allocs
)
{
{
auto
ins
=
pp
.
first
;
auto
ins
=
pp
.
first
;
auto
s
=
ins
->
get_shape
();
auto
s
=
ins
->
get_shape
();
auto
offset
=
pp
.
second
;
auto
offset
=
pp
.
second
;
p
.
replace_instruction
(
ins
,
hip_load
{
s
,
offset
},
mem
);
p
.
replace_instruction
(
ins
,
hip_load
{
s
,
offset
},
mem
);
}
}
...
...
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