Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QuickSched
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
QuickSched
Commits
c7065bef
Commit
c7065bef
authored
10 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Merged symmetric cell-monopole calls into one single task.
parent
6e1a684b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
examples/test_fmm.c
+14
-12
14 additions, 12 deletions
examples/test_fmm.c
with
14 additions
and
12 deletions
examples/test_fmm.c
+
14
−
12
View file @
c7065bef
...
...
@@ -635,6 +635,7 @@ static inline int are_neighbours(struct cell *ci, struct cell *cj) {
static
inline
void
iact_pair_pc
(
struct
cell
*
ci
,
struct
cell
*
cj
)
{
make_interact_pc
(
ci
->
parts
,
ci
->
count
,
ci
->
loc
,
cj
);
make_interact_pc
(
cj
->
parts
,
cj
->
count
,
cj
->
loc
,
ci
);
}
...
...
@@ -773,7 +774,6 @@ void iact_pair(struct cell *ci, struct cell *cj) {
}
else
{
/* Otherwise do cell-mulitpole interactions */
iact_pair_pc
(
cp
,
cps
);
iact_pair_pc
(
cps
,
cp
);
}
}
}
...
...
@@ -945,26 +945,28 @@ void create_tasks(struct qsched *s, struct cell *ci, struct cell *cj) {
data
[
0
]
=
ci
;
data
[
1
]
=
cj
;
tid
=
qsched_addtask
(
s
,
task_type_pair_pc
,
task_flag_none
,
data
,
sizeof
(
struct
cell
*
)
*
2
,
ci
->
count
);
sizeof
(
struct
cell
*
)
*
2
,
ci
->
count
+
cj
->
count
);
/* Add the resource and dependance */
qsched_addlock
(
s
,
tid
,
ci
->
res
);
qsched_addlock
(
s
,
tid
,
cj
->
res
);
#ifdef COM_AS_TASK
qsched_addunlock
(
s
,
cj
->
com_tid
,
tid
);
qsched_addunlock
(
s
,
ci
->
com_tid
,
tid
);
#endif
/* Create the other task. */
data
[
1
]
=
ci
;
data
[
0
]
=
cj
;
tid
=
qsched_addtask
(
s
,
task_type_pair_pc
,
task_flag_none
,
data
,
sizeof
(
struct
cell
*
)
*
2
,
cj
->
count
);
/*
/
\
* Create the other task.
*\/
*/
/*
data[1] = ci;
*/
/*
data[0] = cj;
*/
/*
tid = qsched_addtask(s, task_type_pair_pc, task_flag_none, data,
*/
/*
sizeof(struct cell *) * 2, cj->count);
*/
/* Add the resource and dependance */
qsched_addlock
(
s
,
tid
,
cj
->
res
);
#ifdef COM_AS_TASK
qsched_addunlock
(
s
,
ci
->
com_tid
,
tid
);
#endif
/*
/
\
* Add the resource and dependance
*\/
*/
/*
qsched_addlock(s, tid, cj->res);
*/
/*
#ifdef COM_AS_TASK
*/
/*
qsched_addunlock(s, ci->com_tid, tid);
*/
/*
#endif
*/
}
else
{
/* Cells are direct neighbours */
...
...
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