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
6cd628fd
Commit
6cd628fd
authored
Apr 21, 2017
by
James Willis
Browse files
Added SIMD pragma support for GCC.
parent
0d8a12f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/cache.h
View file @
6cd628fd
...
...
@@ -158,6 +158,8 @@ __attribute__((always_inline)) INLINE void cache_read_particles(
* used instead of double precision. */
#if defined(WITH_VECTORIZATION) && defined(__ICC)
#pragma simd
#elif defined(WITH_VECTORIZATION)
#pragma omp simd
#endif
for
(
int
i
=
0
;
i
<
ci
->
count
;
i
++
)
{
ci_cache
->
x
[
i
]
=
ci
->
parts
[
i
].
x
[
0
]
-
ci
->
loc
[
0
];
...
...
@@ -351,6 +353,8 @@ __attribute__((always_inline)) INLINE void cache_read_two_partial_cells_sorted(
* due to BCs but leave cell cj. */
#if defined(WITH_VECTORIZATION) && defined(__ICC)
#pragma simd
#elif defined(WITH_VECTORIZATION)
#pragma omp simd
#endif
for
(
int
i
=
first_pi_align
;
i
<
ci
->
count
;
i
++
)
{
/* Make sure ci_cache is filled from the first element. */
...
...
@@ -375,6 +379,8 @@ __attribute__((always_inline)) INLINE void cache_read_two_partial_cells_sorted(
#if defined(WITH_VECTORIZATION) && defined(__ICC)
#pragma simd
#elif defined(WITH_VECTORIZATION)
#pragma omp simd
#endif
for
(
int
i
=
0
;
i
<=
last_pj_align
;
i
++
)
{
idx
=
sort_j
[
i
].
i
;
...
...
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