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
a88f4f9c
Commit
a88f4f9c
authored
11 years ago
by
Pedro Gonnet
Browse files
Options
Downloads
Patches
Plain Diff
relax pre-fetching a bit.
Former-commit-id: dcbac2f4ed0c6d3738bbf60e731794465fd2f9e2
parent
8a60d2cd
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
+4
-16
4 additions, 16 deletions
src/runner.c
with
4 additions
and
16 deletions
src/runner.c
+
4
−
16
View file @
a88f4f9c
...
...
@@ -532,17 +532,11 @@ void runner_dokick2 ( struct runner *r , struct cell *c ) {
TIMER_TIC
/* Loop over the particles and kick them. */
__builtin_prefetch
(
&
parts
[
0
]
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
0
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
1
]
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
1
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
2
]
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
2
].
rho_dh
,
0
,
1
);
for
(
k
=
0
;
k
<
nr_parts
;
k
++
)
{
/* Get a handle on the part. */
__builtin_prefetch
(
&
parts
[
k
+
3
]
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
k
+
3
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
k
+
1
]
,
0
,
1
);
__builtin_prefetch
(
&
x
parts
[
k
+
1
]
,
0
,
1
);
p
=
&
parts
[
k
];
xp
=
&
xparts
[
k
];
...
...
@@ -649,17 +643,11 @@ void runner_dokick1 ( struct runner *r , struct cell *c ) {
dx_max
=
0
.
0
f
;
/* Loop over parts. */
__builtin_prefetch
(
&
parts
[
0
]
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
0
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
1
]
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
1
].
rho_dh
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
2
]
,
0
,
1
);
__builtin_prefetch
(
&
parts
[
2
].
rho_dh
,
0
,
1
);
for
(
k
=
0
;
k
<
c
->
count
;
k
++
)
{
/* 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
(
&
parts
[
k
+
1
]
,
0
,
1
);
__builtin_prefetch
(
&
x
parts
[
k
+
1
]
,
0
,
1
);
p
=
&
parts
[
k
];
xp
=
&
xparts
[
k
];
...
...
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