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
390586c5
Commit
390586c5
authored
Jun 17, 2022
by
Paul
Browse files
Foramt
parent
f374143f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/targets/gpu/include/migraphx/gpu/code_object_op.hpp
src/targets/gpu/include/migraphx/gpu/code_object_op.hpp
+2
-2
src/targets/gpu/jit/mlir.cpp
src/targets/gpu/jit/mlir.cpp
+1
-1
No files found.
src/targets/gpu/include/migraphx/gpu/code_object_op.hpp
100755 → 100644
View file @
390586c5
...
@@ -17,8 +17,8 @@ struct code_object_op
...
@@ -17,8 +17,8 @@ struct code_object_op
{
{
value
::
binary
code_object
{};
value
::
binary
code_object
{};
std
::
string
symbol_name
=
""
;
std
::
string
symbol_name
=
""
;
std
::
size_t
global
=
0
;
std
::
size_t
global
=
0
;
std
::
size_t
local
=
0
;
std
::
size_t
local
=
0
;
std
::
vector
<
shape
>
expected_inputs
{};
std
::
vector
<
shape
>
expected_inputs
{};
shape
output
{};
shape
output
{};
std
::
int64_t
output_arg
=
-
1
;
std
::
int64_t
output_arg
=
-
1
;
...
...
src/targets/gpu/jit/mlir.cpp
View file @
390586c5
...
@@ -23,7 +23,7 @@ struct mlir_compiler : compiler<mlir_compiler>
...
@@ -23,7 +23,7 @@ struct mlir_compiler : compiler<mlir_compiler>
compiler_replace
insert
(
code_object_op
co
)
const
compiler_replace
insert
(
code_object_op
co
)
const
{
{
return
[
co
=
std
::
move
(
co
)](
module
&
m
,
instruction_ref
ins
)
{
return
[
co
=
std
::
move
(
co
)](
module
&
m
,
instruction_ref
ins
)
{
auto
mlir
=
insert_mlir
(
m
,
ins
,
co
,
ins
->
inputs
());
auto
mlir
=
insert_mlir
(
m
,
ins
,
co
,
ins
->
inputs
());
m
.
replace_instruction
(
ins
,
mlir
);
m
.
replace_instruction
(
ins
,
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