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
6fd74ade
Commit
6fd74ade
authored
Feb 18, 2022
by
Shucai Xiao
Browse files
refine some print out
parent
345dd037
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/program.cpp
src/program.cpp
+5
-2
No files found.
src/program.cpp
View file @
6fd74ade
...
@@ -777,15 +777,18 @@ static void print_ins_perf(std::ostream& os,
...
@@ -777,15 +777,18 @@ static void print_ins_perf(std::ostream& os,
double
throughput
=
size
/
t
;
double
throughput
=
size
/
t
;
// convert to GB/s
// convert to GB/s
throughput
/=
1.0e
9
;
throughput
/=
1.0e
6
;
thrpt
=
std
::
to_string
(
throughput
);
thrpt
=
std
::
to_string
(
throughput
);
auto
floc
=
flps
.
find
(
'.'
);
auto
floc
=
flps
.
find
(
'.'
);
if
(
floc
!=
std
::
string
::
npos
)
if
(
floc
!=
std
::
string
::
npos
)
{
{
thrpt
.
erase
(
thrpt
.
begin
()
+
floc
+
4
,
thrpt
.
end
());
thrpt
.
erase
(
thrpt
.
begin
()
+
floc
+
4
,
thrpt
.
end
());
}
}
// debugging
thrpt
.
append
(
1
,
','
);
thrpt
.
append
(
std
::
to_string
(
size
));
}
}
thrpt
.
append
(
thrpt_str
.
length
()
-
thrpt
.
length
(),
' '
);
thrpt
.
append
(
thrpt_str
.
length
()
+
7
-
thrpt
.
length
(),
' '
);
os
<<
tms
<<
pers
<<
szs
<<
flps
<<
thrpt
<<
std
::
endl
;
os
<<
tms
<<
pers
<<
szs
<<
flps
<<
thrpt
<<
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