From 23c5d4c84ba96758009436b59e02bc0a6a2e4177 Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Wed, 4 Jan 2017 15:02:20 +0000 Subject: [PATCH] Flush cache for AVX2 and AVX512 versions of the code, not just AVX. --- src/runner_doiact_vec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runner_doiact_vec.c b/src/runner_doiact_vec.c index f01af249a7..62a32db699 100644 --- a/src/runner_doiact_vec.c +++ b/src/runner_doiact_vec.c @@ -226,6 +226,9 @@ __attribute__((always_inline)) INLINE static void storeInteractions( (*icount)++; } } + +#endif /* defined(HAVE_AVX2) || defined(HAVE_AVX512_F) */ + /* Flush the c2 cache if it has reached capacity. */ if (*icount >= (C2_CACHE_SIZE - (NUM_VEC_PROC * VEC_SIZE))) { @@ -254,7 +257,6 @@ __attribute__((always_inline)) INLINE static void storeInteractions( *icount = 0; } -#endif /* defined(HAVE_AVX2) || defined(HAVE_AVX512_F) */ } #endif /* WITH_VECTORIZATION */ -- GitLab