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
fcebd697
Commit
fcebd697
authored
Dec 01, 2016
by
James Willis
Browse files
Added vectorisation guards.
parent
c6972a00
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/hydro/Gadget2/hydro_iact.h
View file @
fcebd697
...
...
@@ -382,6 +382,7 @@ runner_iact_nonsym_vec_density(float *R2, float *Dx, float *Hi, float *Hj,
#endif
}
#ifdef WITH_VECTORIZATION
/**
* @brief Density interaction computed using 2 interleaved vectors (non-symmetric vectorized version).
*/
...
...
@@ -505,6 +506,7 @@ runner_iact_nonsym_2_vec_density(float *R2, float *Dx, float *Dy, float *Dz, vec
curlvzSum
->
v
+=
vec_and
(
vec_mul
(
mj2
.
v
,
vec_mul
(
curlvrz2
.
v
,
wi_dx2
.
v
)),
mask2
.
v
);
#endif
}
#endif
/**
* @brief Force loop
...
...
src/runner_doiact_vec.c
View file @
fcebd697
...
...
@@ -27,6 +27,7 @@
#define NUM_VEC_PROC 2
#define C2_CACHE_SIZE (NUM_VEC_PROC * VEC_SIZE * 6) + (NUM_VEC_PROC * VEC_SIZE)
#ifdef WITH_VECTORIZATION
__attribute__
((
always_inline
))
INLINE
static
void
calcRemInteractions
(
const
struct
cache
*
const
cell_cache
,
float
*
r2q
,
float
*
dxq
,
float
*
dyq
,
float
*
dzq
,
float
*
mq
,
float
*
vxq
,
float
*
vyq
,
float
*
vzq
,
const
int
icount
,
vector
*
rhoSum
,
vector
*
rho_dhSum
,
vector
*
wcountSum
,
vector
*
wcount_dhSum
,
vector
*
div_vSum
,
vector
*
curlvxSum
,
vector
*
curlvySum
,
vector
*
curlvzSum
,
vector
v_hi_inv
,
vector
v_vix
,
vector
v_viy
,
vector
v_viz
,
int
*
icount_align
)
{
#ifdef HAVE_AVX512_F
...
...
@@ -153,6 +154,7 @@ __attribute__((always_inline)) INLINE static void storeInteractions(const int ma
#endif
}
#endif
/**
* @brief Compute the cell self-interaction (non-symmetric) vec.
...
...
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