Commit b7cb6264 authored by James Willis's avatar James Willis
Browse files

AVX-512 fixes to macros.

parent 2d25e38d
......@@ -79,15 +79,15 @@
#define vec_cmp_lt(a, b) _mm512_cmp_ps_mask(a, b, _CMP_LT_OQ)
#define vec_cmp_lte(a, b) _mm512_cmp_ps_mask(a, b, _CMP_LE_OQ)
#define vec_cmp_gte(a, b) _mm512_cmp_ps_mask(a, b, _CMP_GE_OQ)
#define vec_cmp_result(a) ({a})
#define vec_form_int_mask(a) ({a})
#define vec_cmp_result(a) ({a;})
#define vec_form_int_mask(a) ({a;})
#define vec_and(a, b) _mm512_and_ps(a, b)
#define vec_mask_and(a, b) _mm512_kand(a, b)
#define vec_and_mask(a, mask) _mm512_maskz_mov_ps(mask, a)
#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)})
#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);})
#define vec_blend(mask, a, b) _mm512_mask_blend_ps(mask, a, b)
#define vec_todbl_lo(a) _mm512_cvtps_pd(_mm512_extract128_ps(a, 0))
#define vec_todbl_hi(a) _mm512_cvtps_pd(_mm512_extract128_ps(a, 1))
......
......@@ -391,10 +391,10 @@ void test_interactions(struct part test_part, struct part *parts, size_t count,
hi_inv_vec = vec_reciprocal(hi_vec);
mask_t mask;
vec_init_mask(mask);
vec_init_mask_true(mask);
#if (NUM_VEC_PROC_INT == 2)
mask_t mask2;
vec_init_mask(mask2);
vec_init_mask_true(mask2);
#endif
const ticks vec_tic = getticks();
......
......@@ -331,8 +331,8 @@ void test_interactions(struct part test_part, struct part *parts, size_t count,
viz_vec.v = vec_load(&vizq[0]);
hi_inv_vec = vec_reciprocal(hi_vec);
vec_init_mask(mask);
vec_init_mask(mask2);
vec_init_mask_true(mask);
vec_init_mask_true(mask2);
const ticks vec_tic = getticks();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment