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
d1abf06f
Unverified
Commit
d1abf06f
authored
Oct 24, 2023
by
Paul Fultz II
Committed by
GitHub
Oct 24, 2023
Browse files
Ensure unique module name for MLIR standalone ops (#2360)
parent
7604ecf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/targets/gpu/fuse_mlir.cpp
src/targets/gpu/fuse_mlir.cpp
+2
-1
No files found.
src/targets/gpu/fuse_mlir.cpp
View file @
d1abf06f
...
@@ -361,7 +361,8 @@ struct find_mlir_standalone_op
...
@@ -361,7 +361,8 @@ struct find_mlir_standalone_op
return
;
return
;
static
size_t
counter
=
0
;
static
size_t
counter
=
0
;
module_ref
mm
=
mpm
.
create_module
(
"mlir_"
+
std
::
to_string
(
counter
++
));
module_ref
mm
=
mpm
.
create_module
(
"mlir_"
+
conv_based_op
->
name
()
+
std
::
to_string
(
counter
++
));
mm
->
set_bypass
();
mm
->
set_bypass
();
auto
[
anchor_op
,
top_inputs
]
=
fuse_input_ops_and_gemm_based_op
(
mm
,
conv_based_op
);
auto
[
anchor_op
,
top_inputs
]
=
fuse_input_ops_and_gemm_based_op
(
mm
,
conv_based_op
);
mm
->
add_return
({
anchor_op
});
mm
->
add_return
({
anchor_op
});
...
...
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