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
0f4fdade
Commit
0f4fdade
authored
Mar 09, 2019
by
Paul
Browse files
Fix memory conflict bug
parent
85405766
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
src/schedule.cpp
src/schedule.cpp
+3
-0
src/targets/gpu/target.cpp
src/targets/gpu/target.cpp
+1
-1
No files found.
src/schedule.cpp
View file @
0f4fdade
...
...
@@ -380,6 +380,9 @@ void schedule::apply(program& p) const
{
auto
args
=
merge
.
second
[
j
];
args
.
insert
(
args
.
begin
(),
ins1
);
// Add input arguments as a conflict
for
(
auto
arg
:
merge
.
second
[
j
])
args
.
insert
(
args
.
end
(),
arg
->
inputs
().
begin
(),
arg
->
inputs
().
end
());
p
.
insert_instruction
(
merge
.
first
,
op
::
identity
{},
args
);
}
});
...
...
src/targets/gpu/target.cpp
View file @
0f4fdade
...
...
@@ -56,7 +56,7 @@ std::vector<pass> target::get_passes(migraphx::context& gctx) const
schedule
{
gpu
::
schedule_model
{
ctx
.
get_current_device
().
nstreams
()}},
memory_coloring
{
"hip::allocate"
},
dead_code_elimination
{},
//
eliminate_workspace{},
eliminate_workspace
{},
eliminate_allocation
{
"hip::allocate"
},
check_context
<
context
>
{},
dead_code_elimination
{}
...
...
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