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
722d5f5c
Commit
722d5f5c
authored
May 06, 2022
by
Paul
Browse files
Update triple
parent
fd313588
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/targets/gpu/mlir.cpp
src/targets/gpu/mlir.cpp
+1
-1
test/gpu/mlir.cpp
test/gpu/mlir.cpp
+2
-2
No files found.
src/targets/gpu/mlir.cpp
View file @
722d5f5c
...
...
@@ -469,7 +469,7 @@ struct mlir_program
// HACK: Since MLIR can't handle the full target name
auto
hacked_tname
=
tname
.
substr
(
0
,
tname
.
find
(
":"
));
auto
hacked_features
=
tname
.
substr
(
tname
.
find
(
":"
));
mlirMIGraphXAddBackendPipeline
(
pm
.
get
(),
hacked_tname
.
c_str
(),
""
,
hacked_features
.
c_str
());
mlirMIGraphXAddBackendPipeline
(
pm
.
get
(),
hacked_tname
.
c_str
(),
"
amdgcn-amd-amdhsa
"
,
hacked_features
.
c_str
());
mlirPassManagerRun
(
pm
.
get
(),
mmodule
.
get
());
code_object_op
op
;
...
...
test/gpu/mlir.cpp
View file @
722d5f5c
...
...
@@ -116,7 +116,7 @@ module {
if
(
s
.
empty
())
return
;
std
::
cout
<<
s
<<
std
::
endl
;
EXP
EC
T
(
encode
(
s
)
==
encode
(
mlir_output
));
CH
EC
K
(
encode
(
s
)
==
encode
(
mlir_output
));
EXPECT
(
verify_mlir
(
m
));
}
...
...
@@ -145,7 +145,7 @@ module {
if
(
s
.
empty
())
return
;
std
::
cout
<<
s
<<
std
::
endl
;
EXP
EC
T
(
encode
(
s
)
==
encode
(
mlir_output
));
CH
EC
K
(
encode
(
s
)
==
encode
(
mlir_output
));
EXPECT
(
verify_mlir
(
m
));
}
...
...
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