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
ae59a3b1
Commit
ae59a3b1
authored
Mar 09, 2022
by
Shucai Xiao
Browse files
remove unnecessary data copy related to rocblas api call
parent
9f06859b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/targets/gpu/fuse_ops.cpp
src/targets/gpu/fuse_ops.cpp
+7
-7
No files found.
src/targets/gpu/fuse_ops.cpp
View file @
ae59a3b1
...
@@ -916,15 +916,15 @@ struct find_gemm_add
...
@@ -916,15 +916,15 @@ struct find_gemm_add
auto
inputs
=
gemm_ins
->
inputs
();
auto
inputs
=
gemm_ins
->
inputs
();
inputs
.
pop_back
();
inputs
.
pop_back
();
auto
copy_ins
=
c_ins
;
//
auto copy_ins = c_ins;
// Insert copy
// Insert copy
if
(
ins
==
p
.
end
()
or
c_ins
->
outputs
().
size
()
>
1
or
c_ins
->
inputs
().
empty
())
//
if(ins == p.end() or c_ins->outputs().size() > 1 or c_ins->inputs().empty())
{
//
{
copy_ins
=
p
.
insert_instruction
(
ins
,
hip_copy
{},
c_ins
,
ins
->
inputs
().
back
());
//
copy_ins = p.insert_instruction(ins, hip_copy{}, c_ins, ins->inputs().back());
}
//
}
inputs
.
push_back
(
c
opy
_ins
);
inputs
.
push_back
(
c_ins
);
inputs
.
push_back
(
copy_ins
);
inputs
.
push_back
(
gemm_ins
->
inputs
().
back
()
);
gemm
.
beta
=
1
;
gemm
.
beta
=
1
;
p
.
replace_instruction
(
ins
,
gemm
,
inputs
);
p
.
replace_instruction
(
ins
,
gemm
,
inputs
);
...
...
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