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
8aed3993
Commit
8aed3993
authored
Jan 27, 2023
by
Paul
Browse files
Improve module names
parent
01089a59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/fuse_reduce.cpp
src/fuse_reduce.cpp
+4
-3
No files found.
src/fuse_reduce.cpp
View file @
8aed3993
...
...
@@ -205,8 +205,8 @@ struct find_pointwise_reduce
auto
pw
=
r
.
instructions
[
"pointwise"
];
const
auto
*
pm
=
pw
->
module_inputs
().
front
();
//
const auto* old_rm = reduce->module_inputs().front();
auto
*
rm
=
mpm
.
create_module
(
pm
->
name
()
+
":
reduce"
);
const
auto
*
old_rm
=
reduce
->
module_inputs
().
front
();
auto
*
rm
=
mpm
.
create_module
(
pm
->
name
()
+
":
"
+
old_rm
->
name
()
);
rm
->
set_bypass
();
std
::
unordered_map
<
instruction_ref
,
instruction_ref
>
map_ins
;
...
...
@@ -250,8 +250,9 @@ struct find_reduce_pointwise
auto
reduce
=
r
.
instructions
[
"reduce"
];
auto
input
=
r
.
instructions
[
"input"
];
const
auto
*
pm
=
pw
->
module_inputs
().
front
();
const
auto
*
old_rm
=
reduce
->
module_inputs
().
front
();
auto
*
rm
=
mpm
.
create_module
(
old_rm
->
name
()
+
":
pointwise"
);
auto
*
rm
=
mpm
.
create_module
(
old_rm
->
name
()
+
":
"
+
pm
->
name
()
);
rm
->
set_bypass
();
std
::
unordered_map
<
instruction_ref
,
instruction_ref
>
map_ins
;
// Copy module instructions
...
...
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