Skip to content
Extraits de code Groupes Projets
Valider d141d823 rédigé par Tom Barbette's avatar Tom Barbette
Parcourir les fichiers

SSE/AVX: Add flag

On github actions, and only there apparently, even with -march=native we
need to explicitely enable the individual flags.
parent 3fe43cac
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Ce diff est replié.
...@@ -1505,6 +1505,10 @@ AC_MSG_CHECKING([if AVX2 should be used]) ...@@ -1505,6 +1505,10 @@ AC_MSG_CHECKING([if AVX2 should be used])
if test "x$cpu_supports_avx2$check_avx2" = "xyesyes"; then if test "x$cpu_supports_avx2$check_avx2" = "xyesyes"; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_AVX2],1) AC_DEFINE([HAVE_AVX2],1)
save_cflags="$CFLAGS"
CFLAGS="$save_cflags -mavx2"
save_cxxflags="$CXXFLAGS"
CXXFLAGS="$save_cxxflags -mavx2"
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
...@@ -1524,6 +1528,10 @@ AC_MSG_CHECKING([if SSE4.2 should be used]) ...@@ -1524,6 +1528,10 @@ AC_MSG_CHECKING([if SSE4.2 should be used])
if test "x$cpu_supports_sse42$check_sse42" = "xyesyes"; then if test "x$cpu_supports_sse42$check_sse42" = "xyesyes"; then
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
AC_DEFINE([HAVE_SSE42],1) AC_DEFINE([HAVE_SSE42],1)
save_cflags="$CFLAGS"
CFLAGS="$save_cflags -msse4.2"
save_cxxflags="$CXXFLAGS"
CXXFLAGS="$save_cxxflags -msse4.2"
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
fi fi
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter