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
a056628e
"test/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "7c8f6c25059f4e5f6c1fcbd02f92ab84257bc2a8"
Commit
a056628e
authored
Jan 05, 2023
by
jungpark-mlir
Browse files
Update mlir.cpp
parent
b581c8b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/targets/gpu/mlir.cpp
src/targets/gpu/mlir.cpp
+6
-4
No files found.
src/targets/gpu/mlir.cpp
View file @
a056628e
...
...
@@ -587,14 +587,15 @@ struct mlir_program
{
tuning_table
=
mlirRockTuningTableCreate
();
std
::
ifstream
table_in
(
"/opt/rocm/share/miopen/db/rockgemm.tsv"
);
std
::
string
arch
,
prob
,
perf
;
std
::
string
arch
,
prob
,
perf
,
key
;
while
(
std
::
getline
(
table_in
,
arch
,
'\t'
))
{
std
::
getline
(
table_in
,
prob
,
'\t'
);
std
::
getline
(
table_in
,
perf
,
'\t'
);
char
*
prob_cstr
=
strdup
(
prob
.
c_str
());
key
=
arch
+
"
\t
"
+
prob
;
char
*
key_cstr
=
strdup
(
key
.
c_str
());
char
*
perf_cstr
=
strdup
(
perf
.
c_str
());
mlirRockTuningUpdateTable
(
tuning_table
,
prob
_cstr
,
perf_cstr
,
1.0
);
mlirRockTuningUpdateTable
(
tuning_table
,
key
_cstr
,
perf_cstr
,
1.0
);
}
table_in
.
close
();
}
...
...
@@ -603,7 +604,8 @@ struct mlir_program
{
if
(
!
mlirRockTuningSetFromTable
(
tuning_table
,
mmodule
.
get
()))
{
printf
(
"fails to set param on <%s>
\n
"
,
mlirRockTuningGetKey
(
tuning_table
,
mmodule
.
get
()));
printf
(
"fails to set param on <%s>
\n
"
,
mlirRockTuningGetKey
(
tuning_table
,
mmodule
.
get
()));
return
false
;
}
return
true
;
...
...
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