From 232448d60c438302edadae64d88086c1d11e213d Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Thu, 17 Oct 2019 20:14:24 +0100 Subject: [PATCH] Use the correct variable to detect whether we are compiling on an AVX-512 platform with ICC. --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index a2539ff04c..cabb62559b 100644 --- a/configure.ac +++ b/configure.ac @@ -452,10 +452,11 @@ if test "$enable_opt" = "yes" ; then ac_test_CFLAGS="yes" detected_ax_gcc_arch=`echo $ax_gcc_arch | awk '{print $1;}'` - + detected_ax_icc_flag=`echo $icc_flags | awk '{print $1;}'` + # Choose the best flags for the gravity sub-library on this compiler and architecture if test "$ax_cv_c_compiler_vendor" = "intel"; then - if test "$detected_ax_gcc_arch" = "skylake-avx512"; then + if test "$detected_ax_icc_flag" = "-xCORE-AVX512"; then GRAVITY_CFLAGS="-qopt-zmm-usage=high" else AC_MSG_WARN([No additional flags needed for gravity on this platform]) -- GitLab