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] )
@@ -432,6 +434,8 @@ AC_CHECK_HEADERS( \
432
434
values.h \
433
435
)
434
436
437
+ AC_DEFINE ( GLM_FORCE_AVX2 , 1 , [ Enable avx2 if available] )
438
+
435
439
if test "x$enable_UPnP" = "xyes"; then
436
440
AC_CHECK_HEADERS (
437
441
[ miniupnpc/miniupnpc.h] ,
@@ -687,6 +691,9 @@ case $host_os in
687
691
pc)
688
692
FLAGS=-mtune=native
689
693
CONF_CFLAGS="$CONF_CFLAGS $FLAGS";
694
+ if test x$enable_avx2 = xyes ; then
695
+ CONF_CXXFLAGS="$CONF_CXXFLAGS -mavx2";
696
+ fi
690
697
CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS";
691
698
CONF_CXXFLAGS="$CONF_CXXFLAGS -fsigned-char";;
692
699
ppc)
You can’t perform that action at this time.
0 commit comments