Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
e977ab07
Commit
e977ab07
authored
Jun 20, 2022
by
Paul
Browse files
Use another ifdef
parent
fd5a68a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/targets/gpu/fuse_mlir.cpp
src/targets/gpu/fuse_mlir.cpp
+4
-1
No files found.
src/targets/gpu/fuse_mlir.cpp
View file @
e977ab07
...
@@ -12,6 +12,7 @@ struct module;
...
@@ -12,6 +12,7 @@ struct module;
namespace
gpu
{
namespace
gpu
{
#ifdef MIGRAPHX_MLIR
struct
mlir_conv
struct
mlir_conv
{
{
operation
op
=
make_op
(
"convolution"
);
operation
op
=
make_op
(
"convolution"
);
...
@@ -40,7 +41,7 @@ namespace {
...
@@ -40,7 +41,7 @@ namespace {
struct
find_conv_pointwise
struct
find_conv_pointwise
{
{
// Find a convolution followed by a pointwise operation.
// Find a convolution followed by a pointwise operation.
auto
matcher
()
const
// NOLINT
auto
matcher
()
const
{
{
auto
convolution
=
auto
convolution
=
match
::
skip
(
match
::
name
(
"contiguous"
))(
match
::
name
(
"convolution"
).
bind
(
"convolution"
));
match
::
skip
(
match
::
name
(
"contiguous"
))(
match
::
name
(
"convolution"
).
bind
(
"convolution"
));
...
@@ -98,6 +99,8 @@ struct find_conv_pointwise
...
@@ -98,6 +99,8 @@ struct find_conv_pointwise
};
};
}
// namespace
}
// namespace
#endif
void
fuse_mlir
::
apply
(
module_pass_manager
&
mpm
)
const
void
fuse_mlir
::
apply
(
module_pass_manager
&
mpm
)
const
{
{
#ifdef MIGRAPHX_MLIR
#ifdef MIGRAPHX_MLIR
...
...
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