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
47f0d61d
Commit
47f0d61d
authored
Oct 10, 2016
by
Pedro Gonnet
Browse files
forgot to activate some un-skipped tasks.
parent
bb68a8b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cell.c
View file @
47f0d61d
...
...
@@ -909,7 +909,7 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
struct
task
*
t
=
l
->
t
;
const
struct
cell
*
ci
=
t
->
ci
;
const
struct
cell
*
cj
=
t
->
cj
;
t
->
skip
=
0
;
scheduler_activate
(
s
,
t
)
;
/* Set the correct sorting flags */
if
(
t
->
type
==
task_type_pair
)
{
...
...
@@ -936,9 +936,9 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
if
(
ci
->
nodeID
!=
engine_rank
)
{
/* Activate the tasks to recv foreign cell ci's data. */
ci
->
recv_xv
->
skip
=
0
;
ci
->
recv_rho
->
skip
=
0
;
ci
->
recv_ti
->
skip
=
0
;
scheduler_activate
(
s
,
ci
->
recv_xv
)
;
scheduler_activate
(
s
,
ci
->
recv_rho
)
;
scheduler_activate
(
s
,
ci
->
recv_ti
)
;
/* Look for the local cell cj's send tasks. */
struct
link
*
l
=
NULL
;
...
...
@@ -963,9 +963,9 @@ int cell_unskip_tasks(struct cell *c, struct scheduler *s) {
}
else
if
(
cj
->
nodeID
!=
engine_rank
)
{
/* Activate the tasks to recv foreign cell cj's data. */
cj
->
recv_xv
->
skip
=
0
;
cj
->
recv_rho
->
skip
=
0
;
cj
->
recv_ti
->
skip
=
0
;
scheduler_activate
(
s
,
cj
->
recv_xv
)
;
scheduler_activate
(
s
,
cj
->
recv_rho
)
;
scheduler_activate
(
s
,
cj
->
recv_ti
)
;
/* Look for the local cell ci's send tasks. */
struct
link
*
l
=
NULL
;
for
(
l
=
ci
->
send_xv
;
l
!=
NULL
&&
l
->
t
->
cj
->
nodeID
!=
cj
->
nodeID
;
...
...
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