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
6f768f82
Commit
6f768f82
authored
Jun 17, 2022
by
Paul
Browse files
Fix failures when mlir is disabled
parent
2e19d280
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
src/targets/gpu/fuse_mlir.cpp
src/targets/gpu/fuse_mlir.cpp
+4
-0
src/targets/gpu/mlir.cpp
src/targets/gpu/mlir.cpp
+10
-0
No files found.
src/targets/gpu/fuse_mlir.cpp
View file @
6f768f82
...
@@ -95,7 +95,11 @@ struct find_conv_pointwise
...
@@ -95,7 +95,11 @@ struct find_conv_pointwise
void
fuse_mlir
::
apply
(
module_pass_manager
&
mpm
)
const
void
fuse_mlir
::
apply
(
module_pass_manager
&
mpm
)
const
{
{
#ifdef MIGRAPHX_MLIR
match
::
find_matches
(
mpm
,
find_conv_pointwise
{});
match
::
find_matches
(
mpm
,
find_conv_pointwise
{});
#else
(
void
)
mpm
;
#endif
}
}
}
// namespace gpu
}
// namespace gpu
...
...
src/targets/gpu/mlir.cpp
View file @
6f768f82
...
@@ -602,6 +602,16 @@ instruction_ref insert_mlir(module& m,
...
@@ -602,6 +602,16 @@ instruction_ref insert_mlir(module& m,
std
::
string
dump_mlir
(
const
module
&
)
{
return
{};
}
std
::
string
dump_mlir
(
const
module
&
)
{
return
{};
}
code_object_op
compile_mlir
(
const
context
&
,
const
module
&
)
{
return
{};
}
instruction_ref
insert_mlir
(
module
&
m
,
instruction_ref
,
code_object_op
,
const
std
::
vector
<
instruction_ref
>&
)
{
return
m
.
end
();
}
#endif
#endif
}
// namespace gpu
}
// namespace gpu
...
...
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