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
561456e7
Commit
561456e7
authored
May 05, 2022
by
Paul
Browse files
Format
parent
10f4486c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
src/targets/gpu/fuse_ops.cpp
src/targets/gpu/fuse_ops.cpp
+1
-1
src/targets/gpu/mlir.cpp
src/targets/gpu/mlir.cpp
+6
-3
No files found.
src/targets/gpu/fuse_ops.cpp
View file @
561456e7
...
@@ -948,7 +948,7 @@ struct find_commutative_broadcast
...
@@ -948,7 +948,7 @@ struct find_commutative_broadcast
p
.
replace_instruction
(
ins
,
ins
->
get_operator
(),
args
);
p
.
replace_instruction
(
ins
,
ins
->
get_operator
(),
args
);
}
}
};
};
}
}
// namespace
void
fuse_ops
::
apply
(
module
&
p
)
const
void
fuse_ops
::
apply
(
module
&
p
)
const
{
{
...
...
src/targets/gpu/mlir.cpp
View file @
561456e7
...
@@ -97,8 +97,11 @@ MlirStringRef make_mlir_string_ref(const std::string_view& s)
...
@@ -97,8 +97,11 @@ MlirStringRef make_mlir_string_ref(const std::string_view& s)
template
<
class
F
,
class
T
,
class
Printer
>
template
<
class
F
,
class
T
,
class
Printer
>
void
mlir_print
(
F
f
,
T
x
,
Printer
printer
)
void
mlir_print
(
F
f
,
T
x
,
Printer
printer
)
{
{
f
(
x
,
f
(
+
[](
MlirStringRef
s
,
void
*
data
)
{
(
*
reinterpret_cast
<
Printer
*>
(
data
))(
to_string_view
(
s
));
},
x
,
+
[](
MlirStringRef
s
,
void
*
data
)
{
(
*
reinterpret_cast
<
Printer
*>
(
data
))(
to_string_view
(
s
));
},
&
printer
);
&
printer
);
}
}
...
...
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