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
c8dc5f7b
Commit
c8dc5f7b
authored
Jan 31, 2022
by
Shucai Xiao
Browse files
additional refinement for gemm flops
parent
779e6525
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/program.cpp
src/program.cpp
+7
-3
No files found.
src/program.cpp
View file @
c8dc5f7b
...
@@ -643,12 +643,12 @@ void program::perf_report(std::ostream& os,
...
@@ -643,12 +643,12 @@ void program::perf_report(std::ostream& os,
return
;
return
;
});
});
int
print_ins_len
=
max_ins_len
+
4
;
int
print_ins_len
=
max_ins_len
+
2
;
std
::
string
str
=
"Instructions"
;
std
::
string
str
=
"Instructions"
;
os
<<
str
;
os
<<
str
;
print_space
(
os
,
print_ins_len
-
str
.
length
());
print_space
(
os
,
print_ins_len
-
str
.
length
());
std
::
string
time_str
=
"Time(ms)
"
;
std
::
string
time_str
=
"Time(ms) "
;
std
::
string
percent_str
=
"Percentage
"
;
std
::
string
percent_str
=
"Percentage "
;
std
::
string
flops_str
=
"Flops(GFlops/s)"
;
std
::
string
flops_str
=
"Flops(GFlops/s)"
;
os
<<
time_str
<<
percent_str
<<
flops_str
<<
std
::
endl
;
os
<<
time_str
<<
percent_str
<<
flops_str
<<
std
::
endl
;
...
@@ -695,6 +695,10 @@ void program::perf_report(std::ostream& os,
...
@@ -695,6 +695,10 @@ void program::perf_report(std::ostream& os,
{
{
flps
.
erase
(
flps
.
begin
()
+
floc
+
4
,
flps
.
end
());
flps
.
erase
(
flps
.
begin
()
+
floc
+
4
,
flps
.
end
());
}
}
flps
.
append
(
1
,
' '
);
flps
.
append
(
"(k = "
);
flps
.
append
(
std
::
to_string
(
inss
.
front
().
lens
().
back
()));
flps
.
append
(
")"
);
}
}
os
<<
tms
<<
pers
<<
flps
<<
std
::
endl
;
os
<<
tms
<<
pers
<<
flps
<<
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