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
d73372d8
Commit
d73372d8
authored
Aug 08, 2017
by
James Willis
Browse files
Changed vec_init_mask to vec_init_mask_true.
parent
494a5c29
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/runner_doiact_vec.c
View file @
d73372d8
...
...
@@ -73,8 +73,8 @@ __attribute__((always_inline)) INLINE static void calcRemInteractions(
*
icount_align
+=
pad
;
/* Initialise masks to true. */
vec_init_mask
(
int_mask
);
vec_init_mask
(
int_mask2
);
vec_init_mask
_true
(
int_mask
);
vec_init_mask
_true
(
int_mask2
);
/* Pad secondary cache so that there are no contributions in the interaction
* function. */
...
...
@@ -205,8 +205,8 @@ __attribute__((always_inline)) INLINE static void storeInteractions(
v_hi_inv
,
v_vix
,
v_viy
,
v_viz
,
&
icount_align
);
mask_t
int_mask
,
int_mask2
;
vec_init_mask
(
int_mask
);
vec_init_mask
(
int_mask2
);
vec_init_mask
_true
(
int_mask
);
vec_init_mask
_true
(
int_mask2
);
/* Perform interactions. */
for
(
int
pjd
=
0
;
pjd
<
icount_align
;
pjd
+=
(
NUM_VEC_PROC
*
VEC_SIZE
))
{
...
...
@@ -545,8 +545,8 @@ __attribute__((always_inline)) INLINE void runner_doself1_density_vec(
/* Initialise masks to true in case remainder interactions have been
* performed. */
mask_t
int_mask
,
int_mask2
;
vec_init_mask
(
int_mask
);
vec_init_mask
(
int_mask2
);
vec_init_mask
_true
(
int_mask
);
vec_init_mask
_true
(
int_mask2
);
/* Perform interaction with 2 vectors. */
for
(
int
pjd
=
0
;
pjd
<
icount_align
;
pjd
+=
(
num_vec_proc
*
VEC_SIZE
))
{
...
...
src/vector.h
View file @
d73372d8
...
...
@@ -85,7 +85,7 @@
#define vec_mask_and(a, b) _mm512_kand(a, b)
#define vec_and_mask(a, mask) \
_mm512_maskz_expand_ps(mask, a)
/* TODO: Alternative needs to be found. */
#define vec_init_mask(mask) mask = 0xFFFF
#define vec_init_mask
_true
(mask) mask = 0xFFFF
#define vec_zero_mask(mask) mask = 0
#define vec_create_mask(mask, cond) mask = cond
#define vec_pad_mask(mask, pad) mask = mask >> (pad)
...
...
@@ -181,7 +181,7 @@
#define vec_and(a, b) _mm256_and_ps(a, b)
#define vec_mask_and(a, b) _mm256_and_ps(a.v, b.v)
#define vec_and_mask(a, mask) _mm256_and_ps(a, mask.v)
#define vec_init_mask(mask) mask.m = vec_setint1(0xFFFFFFFF)
#define vec_init_mask
_true
(mask) mask.m = vec_setint1(0xFFFFFFFF)
#define vec_create_mask(mask, cond) mask.v = cond
#define vec_zero_mask(mask) mask.v = vec_setzero()
#define vec_pad_mask(mask, pad) \
...
...
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