Skip to content
Snippets Groups Projects
Commit d9fd1872 authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Merge branch...

Merge branch '465-separate-the-hand-written-vectorization-and-the-auto-vectorization-flags' into 'master'

Resolve "Separate the hand-written vectorization and the auto-vectorization flags"

Closes #465

See merge request !617
parents 9ca9e64b 9e4456d5
No related branches found
No related tags found
1 merge request!617Resolve "Separate the hand-written vectorization and the auto-vectorization flags"
...@@ -322,6 +322,16 @@ AC_ARG_ENABLE([vec], ...@@ -322,6 +322,16 @@ AC_ARG_ENABLE([vec],
[enable_vec="yes"] [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 HAVEVECTORIZATION=0
if test "$enable_opt" = "yes" ; then if test "$enable_opt" = "yes" ; then
...@@ -345,7 +355,6 @@ if test "$enable_opt" = "yes" ; then ...@@ -345,7 +355,6 @@ if test "$enable_opt" = "yes" ; then
fi fi
fi fi
if test "$enable_vec" = "no"; then if test "$enable_vec" = "no"; then
if test "$ax_cv_c_compiler_vendor" = "intel"; then if test "$ax_cv_c_compiler_vendor" = "intel"; then
CFLAGS="$CFLAGS -no-vec -no-simd" CFLAGS="$CFLAGS -no-vec -no-simd"
...@@ -359,8 +368,8 @@ if test "$enable_opt" = "yes" ; then ...@@ -359,8 +368,8 @@ if test "$enable_opt" = "yes" ; then
else else
AC_MSG_WARN([Do not know how to disable vectorization for this compiler]) AC_MSG_WARN([Do not know how to disable vectorization for this compiler])
fi fi
else elif test "$enable_hand_vec" = "yes"; then
AC_DEFINE([WITH_VECTORIZATION],1,[Enable vectorization]) AC_DEFINE([WITH_VECTORIZATION],1,[Enable hand-written vectorization])
HAVEVECTORIZATION=1 HAVEVECTORIZATION=1
fi fi
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment