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
d22f6e99
Commit
d22f6e99
authored
Jan 04, 2023
by
jungpark-mlir
Browse files
Update mlir.cpp
parent
a91fca85
Changes
1
Show 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 @
d22f6e99
...
@@ -586,11 +586,13 @@ struct mlir_program
...
@@ -586,11 +586,13 @@ struct mlir_program
fs
::
path
{
"/opt"
}
/
"rocm"
/
"share"
/
"miopen"
/
"db"
/
"rockgemm.tsv"
;
fs
::
path
{
"/opt"
}
/
"rocm"
/
"share"
/
"miopen"
/
"db"
/
"rockgemm.tsv"
;
std
::
ifstream
table_in
(
file_path
);
std
::
ifstream
table_in
(
file_path
);
std
::
string
arch
,
prob
,
perf
;
std
::
string
arch
,
prob
,
perf
;
while
(
getline
(
table_in
,
arch
,
"
\t
"
))
while
(
std
::
getline
(
table_in
,
arch
,
"
\t
"
))
{
{
getline
(
table_in
,
prob
,
"
\t
"
);
std
::
getline
(
table_in
,
prob
,
"
\t
"
);
getline
(
table_in
,
perf
,
"
\t
"
);
std
::
getline
(
table_in
,
perf
,
"
\t
"
);
mlirRockTuningUpdateTable
(
tuning_table
,
prob
.
c_str
(),
perf
.
c_str
(),
1.0
);
char
*
prob_cstr
=
prob
.
c_str
();
char
*
perf_cstr
=
perf
.
c_str
();
mlirRockTuningUpdateTable
(
tuning_table
,
prob_cstr
,
perf_cstr
,
1.0
);
}
}
table_in
.
close
();
table_in
.
close
();
}
}
...
...
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