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
98f8fde9
Commit
98f8fde9
authored
Jun 17, 2016
by
Pedro Gonnet
Browse files
add debugging output.
parent
298cc01b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
98f8fde9
...
...
@@ -1576,7 +1576,12 @@ void engine_maketasks(struct engine *e) {
engine_make_gravityinteraction_tasks
(
e
);
/* Split the tasks. */
scheduler_splittasks
(
sched
);
{
const
ticks
tic
=
getticks
();
scheduler_splittasks
(
sched
);
message
(
"scheduler_splittasks took %.3f %s."
,
clocks_from_ticks
(
getticks
()
-
tic
),
clocks_getunit
());
}
/* Allocate the list of cell-task links. The maximum number of links
is the number of cells (s->tot_cells) times the number of neighbours (27)
...
...
@@ -1640,10 +1645,20 @@ void engine_maketasks(struct engine *e) {
scheduler_set_unlocks
(
sched
);
/* Rank the tasks. */
scheduler_ranktasks
(
sched
);
{
const
ticks
tic
=
getticks
();
scheduler_ranktasks
(
sched
);
message
(
"scheduler_ranktasks took %.3f %s."
,
clocks_from_ticks
(
getticks
()
-
tic
),
clocks_getunit
());
}
/* Weight the tasks. */
scheduler_reweight
(
sched
);
{
const
ticks
tic
=
getticks
();
scheduler_reweight
(
sched
);
message
(
"scheduler_reweight took %.3f %s."
,
clocks_from_ticks
(
getticks
()
-
tic
),
clocks_getunit
());
}
/* Set the tasks age. */
e
->
tasks_age
=
0
;
...
...
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