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
3da1e969
Commit
3da1e969
authored
Oct 28, 2022
by
jungpark-mlir
Browse files
Update mlir.cpp
parent
e0303225
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/targets/gpu/mlir.cpp
src/targets/gpu/mlir.cpp
+3
-3
No files found.
src/targets/gpu/mlir.cpp
View file @
3da1e969
...
@@ -590,10 +590,10 @@ struct mlir_program
...
@@ -590,10 +590,10 @@ struct mlir_program
#else
#else
void
find_target
()
void
find_target
()
{
{
std
::
string
tname
=
get_device_name
();
target_arch
=
get_device_name
();
// HACK: Since MLIR can't handle the full target name
// HACK: Since MLIR can't handle the full target name
target_
name
=
trim
(
split_string
(
t
name
,
':'
).
front
());
target_
chip
=
trim
(
split_string
(
t
arget_arch
,
':'
).
front
());
if
(
t
name
.
size
()
!=
target_
name
.
size
())
if
(
t
arget_arch
.
size
()
!=
target_
chip
.
size
())
std
::
cout
std
::
cout
<<
"*************** WARNING: MLIR may not compile the correct target features for: "
<<
"*************** WARNING: MLIR may not compile the correct target features for: "
<<
tname
<<
std
::
endl
;
<<
tname
<<
std
::
endl
;
...
...
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