From 5fe848cb10305a4098adff5585b747332199412d Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Thu, 26 Jan 2017 11:00:12 +0000 Subject: [PATCH] Only use #pragma novector if compiling with ICC. --- tests/benchmarkInteractions.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/benchmarkInteractions.c b/tests/benchmarkInteractions.c index 0ea9875613..5a6ef60659 100644 --- a/tests/benchmarkInteractions.c +++ b/tests/benchmarkInteractions.c @@ -279,8 +279,10 @@ void test_interactions(struct part test_part, struct part *parts, size_t count, } const ticks tic = getticks(); -/* Perform serial interaction */ + /* Perform serial interaction */ +#ifdef __ICC #pragma novector +#endif for (size_t i = 0; i < count; i++) { IACT(r2[i], &(dx[3 * i]), pi_serial.h, pj_serial[i].h, &pi_serial, &pj_serial[i]); -- GitLab