Commit 98f8fde9 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add debugging output.

parent 298cc01b
......@@ -1576,7 +1576,12 @@ void engine_maketasks(struct engine *e) {
engine_make_gravityinteraction_tasks(e);
/* Split the tasks. */
{
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. */
{
const ticks tic = getticks();
scheduler_ranktasks(sched);
message("scheduler_ranktasks took %.3f %s.", clocks_from_ticks(getticks() - tic),
clocks_getunit());
}
/* Weight the tasks. */
{
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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment