From 81ec76b6d54058eea74452ca7bd05f783f8cd51c Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Mon, 24 Sep 2018 11:04:13 +0100 Subject: [PATCH] Added --disable-hand-vec option to disable hand written vectorisation. --- configure.ac | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f5228ebc02..de6745990b 100644 --- a/configure.ac +++ b/configure.ac @@ -322,6 +322,16 @@ AC_ARG_ENABLE([vec], [enable_vec="yes"] ) +# Disable hand written vectorisation. Slightly odd implementation as want +# to describe as --disable-hand-vec, but macro is enable (there is no enable action). +AC_ARG_ENABLE([hand-vec], + [AS_HELP_STRING([--disable-hand-vec], + [Disable intrinsic vectorization] + )], + [enable_hand_vec="$enableval"], + [enable_hand_vec="yes"] +) + HAVEVECTORIZATION=0 if test "$enable_opt" = "yes" ; then @@ -345,7 +355,6 @@ if test "$enable_opt" = "yes" ; then fi fi - if test "$enable_vec" = "no"; then if test "$ax_cv_c_compiler_vendor" = "intel"; then CFLAGS="$CFLAGS -no-vec -no-simd" @@ -359,7 +368,7 @@ if test "$enable_opt" = "yes" ; then else AC_MSG_WARN([Do not know how to disable vectorization for this compiler]) fi - else + elif test "$enable_hand_vec" = "yes"; then AC_DEFINE([WITH_VECTORIZATION],1,[Enable vectorization]) HAVEVECTORIZATION=1 fi -- GitLab