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
e3adf2a0
Commit
e3adf2a0
authored
9 years ago
by
Matthieu Schaller
Browse files
Options
Downloads
Patches
Plain Diff
Removed prefetches as they are not working and not portable.
Former-commit-id: 14066337788b95fe57e1bc44f62b7487aa5efa02
parent
d40118fd
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
src/runner.c
+0
-54
0 additions, 54 deletions
src/runner.c
with
0 additions
and
54 deletions
src/runner.c
+
0
−
54
View file @
e3adf2a0
...
@@ -531,17 +531,9 @@ void runner_doghost(struct runner *r, struct cell *c) {
...
@@ -531,17 +531,9 @@ void runner_doghost(struct runner *r, struct cell *c) {
redo
=
0
;
redo
=
0
;
/* Loop over the parts in this cell. */
/* Loop over the parts in this cell. */
__builtin_prefetch
(
&
parts
[
pid
[
0
]],
0
,
1
);
__builtin_prefetch
(
&
parts
[
pid
[
0
]].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
pid
[
1
]],
0
,
1
);
__builtin_prefetch
(
&
parts
[
pid
[
1
]].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
pid
[
2
]],
0
,
1
);
__builtin_prefetch
(
&
parts
[
pid
[
2
]].
rho_dh
,
0
,
1
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
for
(
i
=
0
;
i
<
count
;
i
++
)
{
/* Get a direct pointer on the part. */
/* Get a direct pointer on the part. */
__builtin_prefetch
(
&
parts
[
pid
[
i
+
3
]],
0
,
1
);
__builtin_prefetch
(
&
parts
[
pid
[
i
+
3
]].
rho_dh
,
0
,
1
);
p
=
&
parts
[
pid
[
i
]];
p
=
&
parts
[
pid
[
i
]];
/* Is this part within the timestep? */
/* Is this part within the timestep? */
...
@@ -723,21 +715,9 @@ void runner_dokick2(struct runner *r, struct cell *c) {
...
@@ -723,21 +715,9 @@ void runner_dokick2(struct runner *r, struct cell *c) {
hdt
=
dt
/
2
;
hdt
=
dt
/
2
;
/* Loop over the particles and kick them. */
/* Loop over the particles and kick them. */
__builtin_prefetch
(
&
parts
[
0
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
0
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
0
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
1
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
1
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
1
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
2
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
2
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
2
],
0
,
1
);
for
(
k
=
0
;
k
<
nr_parts
;
k
++
)
{
for
(
k
=
0
;
k
<
nr_parts
;
k
++
)
{
/* Get a handle on the part. */
/* Get a handle on the part. */
__builtin_prefetch
(
&
parts
[
k
+
3
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
k
+
3
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
k
+
3
],
0
,
1
);
p
=
&
parts
[
k
];
p
=
&
parts
[
k
];
xp
=
&
xparts
[
k
];
xp
=
&
xparts
[
k
];
...
@@ -865,21 +845,9 @@ void runner_dokick1(struct runner *r, struct cell *c) {
...
@@ -865,21 +845,9 @@ void runner_dokick1(struct runner *r, struct cell *c) {
dx_max
=
0
.
0
f
;
dx_max
=
0
.
0
f
;
/* Loop over parts. */
/* Loop over parts. */
__builtin_prefetch
(
&
parts
[
0
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
0
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
0
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
1
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
1
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
1
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
2
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
2
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
2
],
0
,
1
);
for
(
k
=
0
;
k
<
c
->
count
;
k
++
)
{
for
(
k
=
0
;
k
<
c
->
count
;
k
++
)
{
/* Get a handle on the kth particle. */
/* Get a handle on the kth particle. */
__builtin_prefetch
(
&
parts
[
k
+
3
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
k
+
3
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
k
+
3
],
0
,
1
);
p
=
&
parts
[
k
];
p
=
&
parts
[
k
];
xp
=
&
xparts
[
k
];
xp
=
&
xparts
[
k
];
...
@@ -1025,21 +993,9 @@ void runner_dokick(struct runner *r, struct cell *c, int timer) {
...
@@ -1025,21 +993,9 @@ void runner_dokick(struct runner *r, struct cell *c, int timer) {
dx_max
=
0
.
0
f
;
dx_max
=
0
.
0
f
;
/* Loop over the particles and kick them. */
/* Loop over the particles and kick them. */
__builtin_prefetch
(
&
parts
[
0
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
0
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
0
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
1
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
1
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
1
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
2
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
2
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
2
],
0
,
1
);
for
(
k
=
0
;
k
<
nr_parts
;
k
++
)
{
for
(
k
=
0
;
k
<
nr_parts
;
k
++
)
{
/* Get a handle on the part. */
/* Get a handle on the part. */
__builtin_prefetch
(
&
parts
[
k
+
3
],
0
,
1
);
__builtin_prefetch
(
&
parts
[
k
+
3
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
xparts
[
k
+
3
],
0
,
1
);
p
=
&
parts
[
k
];
p
=
&
parts
[
k
];
xp
=
&
xparts
[
k
];
xp
=
&
xparts
[
k
];
...
@@ -1265,16 +1221,6 @@ void *runner_main(void *data) {
...
@@ -1265,16 +1221,6 @@ void *runner_main(void *data) {
/* else
/* else
super = NULL; */
super = NULL; */
/* Prefetch? */
if
(
runner_prefetch
&&
t
->
type
!=
task_type_kick1
&&
t
->
type
!=
task_type_kick2
&&
t
->
type
!=
task_type_ghost
)
{
for
(
int
k
=
0
;
k
<
ci
->
count
;
k
++
)
__builtin_prefetch
(
&
ci
->
parts
[
k
],
1
,
3
);
if
(
cj
!=
NULL
)
for
(
int
k
=
0
;
k
<
cj
->
count
;
k
++
)
__builtin_prefetch
(
&
cj
->
parts
[
k
],
1
,
3
);
}
/* Different types of tasks... */
/* Different types of tasks... */
switch
(
t
->
type
)
{
switch
(
t
->
type
)
{
case
task_type_self
:
case
task_type_self
:
...
...
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