Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SWIFT
SWIFTsim
Commits
8a879a84
Commit
8a879a84
authored
Nov 27, 2018
by
Peter W. Draper
Browse files
Convert tick stats into millisec, when possible
parent
9d6f91e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/task.c
View file @
8a879a84
...
...
@@ -791,9 +791,11 @@ void task_dump_stats(struct engine *e, int step) {
* some absolute units. */
int
fixed_cost
=
(
int
)(
clocks_from_ticks
(
mean
)
*
10000
.
f
);
fprintf
(
dfile
,
"%15s/%-10s %10d %14.2f %14.2f %14.2f %14.2f %14.2f %10d
\n
"
,
taskID
,
subtaskID_names
[
k
],
count
[
j
][
k
],
min
[
j
][
k
],
max
[
j
][
k
],
sum
[
j
][
k
],
mean
,
perc
,
fixed_cost
);
"%15s/%-10s %10d %14.4f %14.4f %14.4f %14.4f %14.4f %10d
\n
"
,
taskID
,
subtaskID_names
[
k
],
count
[
j
][
k
],
clocks_from_ticks
(
min
[
j
][
k
]),
clocks_from_ticks
(
max
[
j
][
k
]),
clocks_from_ticks
(
sum
[
j
][
k
]),
clocks_from_ticks
(
mean
),
perc
,
fixed_cost
);
fprintf
(
cfile
,
"repartition_costs[%d][%d] = %10d; /* %s/%s */
\n
"
,
j
,
k
,
fixed_cost
,
taskID
,
subtaskID_names
[
k
]);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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