Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTsim
Commits
98f8fde9
Commit
98f8fde9
authored
9 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
add debugging output.
parent
298cc01b
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!176
Tasks cleanup
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/engine.c
+18
-3
18 additions, 3 deletions
src/engine.c
with
18 additions
and
3 deletions
src/engine.c
+
18
−
3
View file @
98f8fde9
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment