File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ if test x$enable_robots != xno; then
171
171
AC_DEFINE ( ROBOT , 1 , [ Enabling Robots] )
172
172
fi
173
173
174
+ AC_ARG_ENABLE ( avx2 , [ --enable-avx2 turn on simd] )
175
+
174
176
# debugging and profiling
175
177
AC_ARG_ENABLE ( debug , [ --enable-debug turn on debugging] )
176
178
AC_ARG_ENABLE ( profiling , [ --enable-profiling turn on profiling] )
@@ -436,6 +438,8 @@ AC_CHECK_HEADERS( \
436
438
values.h \
437
439
)
438
440
441
+ AC_DEFINE ( GLM_FORCE_AVX2 , 1 , [ Enable avx2 if available] )
442
+
439
443
if test "x$enable_UPnP" = "xyes"; then
440
444
AC_CHECK_HEADERS (
441
445
[ miniupnpc/miniupnpc.h] ,
@@ -691,6 +695,9 @@ case $host_os in
691
695
pc)
692
696
FLAGS=-mtune=native
693
697
CONF_CFLAGS="$CONF_CFLAGS $FLAGS";
698
+ if test x$enable_avx2 = xyes ; then
699
+ CONF_CXXFLAGS="$CONF_CXXFLAGS -mavx2";
700
+ fi
694
701
CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS";
695
702
CONF_CXXFLAGS="$CONF_CXXFLAGS -fsigned-char";;
696
703
ppc)
You can’t perform that action at this time.
0 commit comments