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
30f04f03
Commit
30f04f03
authored
Jun 21, 2016
by
Matthieu Schaller
Browse files
Be safe
parent
3290b0e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/engine.c
View file @
30f04f03
...
...
@@ -200,20 +200,24 @@ void engine_make_hydro_hierarchical_tasks(struct engine *e, struct cell *c,
if
(
c
->
nodeID
==
e
->
nodeID
)
{
/* Add the init task. */
c
->
init
=
scheduler_addtask
(
s
,
task_type_init
,
task_subtype_none
,
0
,
0
,
c
,
NULL
,
0
);
if
(
c
->
init
==
NULL
)
c
->
init
=
scheduler_addtask
(
s
,
task_type_init
,
task_subtype_none
,
0
,
0
,
c
,
NULL
,
0
);
/* Add the drift task. */
c
->
drift
=
scheduler_addtask
(
s
,
task_type_drift
,
task_subtype_none
,
0
,
0
,
c
,
NULL
,
0
);
if
(
c
->
drift
==
NULL
)
c
->
drift
=
scheduler_addtask
(
s
,
task_type_drift
,
task_subtype_none
,
0
,
0
,
c
,
NULL
,
0
);
/* Add the kick task that matches the policy. */
if
(
is_fixdt
)
{
c
->
kick
=
scheduler_addtask
(
s
,
task_type_kick_fixdt
,
task_subtype_none
,
0
,
0
,
c
,
NULL
,
0
);
if
(
c
->
kick
==
NULL
)
c
->
kick
=
scheduler_addtask
(
s
,
task_type_kick_fixdt
,
task_subtype_none
,
0
,
0
,
c
,
NULL
,
0
);
}
else
{
c
->
kick
=
scheduler_addtask
(
s
,
task_type_kick
,
task_subtype_none
,
0
,
0
,
c
,
NULL
,
0
);
if
(
c
->
kick
==
NULL
)
c
->
kick
=
scheduler_addtask
(
s
,
task_type_kick
,
task_subtype_none
,
0
,
0
,
c
,
NULL
,
0
);
}
/* Generate the ghost task. */
...
...
@@ -2454,7 +2458,7 @@ void engine_makeproxies(struct engine *e) {
}
/**
* @brief Split the underlying space into regions and assign to separat
w
nodes.
* @brief Split the underlying space into regions and assign to separat
e
nodes.
*
* @param e The #engine.
* @param initial_partition structure defining the cell partition technique
...
...
@@ -2589,8 +2593,7 @@ static cpu_set_t *engine_entry_affinity() {
#endif
/**
* @brief Ensure the NUMA node on which we initialise (first touch)
* everything
* @brief Ensure the NUMA node on which we initialise (first touch) everything
* doesn't change before engine_init allocates NUMA-local workers.
*/
void
engine_pin
()
{
...
...
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