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
a6e392c5
Commit
a6e392c5
authored
Dec 07, 2016
by
James Willis
Browse files
Added comments to #ifdef's to improve readability.
parent
11913694
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/runner_doiact_vec.c
View file @
a6e392c5
...
...
@@ -205,7 +205,7 @@ __attribute__((always_inline)) INLINE static void storeInteractions(
VEC_LEFT_PACK
(
v_vjy
->
v
,
v_mask
.
m
,
&
int_cache
->
vyq
[
*
icount
]);
VEC_LEFT_PACK
(
v_vjz
->
v
,
v_mask
.
m
,
&
int_cache
->
vzq
[
*
icount
]);
#endif
#endif
/* HAVE_AVX512_F */
(
*
icount
)
+=
pack
;
#else
...
...
@@ -254,9 +254,9 @@ __attribute__((always_inline)) INLINE static void storeInteractions(
*
icount
=
0
;
}
#endif
#endif
/* defined(HAVE_AVX2) || defined(HAVE_AVX512_F) */
}
#endif
#endif
/* WITH_VECTORIZATION */
/**
* @brief Compute the cell self-interaction (non-symmetric) using vector
...
...
@@ -432,7 +432,7 @@ __attribute__((always_inline)) INLINE void runner_doself1_density_vec(
/* Combine two masks and form integer mask. */
doi_mask
=
vec_cmp_result
(
vec_and
(
v_doi_mask
.
v
,
v_doi_mask_check
.
v
));
doi_mask2
=
vec_cmp_result
(
vec_and
(
v_doi_mask2
.
v
,
v_doi_mask2_check
.
v
));
#endif
#endif
/* HAVE_AVX512_F */
/* If there are any interactions left pack interaction values into c2
* cache. */
...
...
@@ -502,7 +502,7 @@ __attribute__((always_inline)) INLINE void runner_doself1_density_vec(
}
/* loop over all particles. */
TIMER_TOC
(
timer_doself_density
);
#endif
#endif
/* WITH_VECTORIZATION */
}
/**
...
...
@@ -743,7 +743,7 @@ __attribute__((always_inline)) INLINE void runner_doself1_density_vec_2(
doi2_mask
=
vec_cmp_result
(
vec_and
(
v_doi2_mask
.
v
,
v_doi2_mask_check
.
v
));
doi2_mask2
=
vec_cmp_result
(
vec_and
(
v_doi2_mask2
.
v
,
v_doi2_mask2_check
.
v
));
#endif
#endif
/* HAVE_AVX512_F */
/* Hit or miss? */
// if (doi_mask) {
...
...
@@ -863,5 +863,5 @@ __attribute__((always_inline)) INLINE void runner_doself1_density_vec_2(
}
/* loop over all particles. */
TIMER_TOC
(
timer_doself_density
);
#endif
#endif
/* WITH_VECTORIZATION */
}
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