Skip to content

Commit

Permalink
Enable avx2
Browse files Browse the repository at this point in the history
  • Loading branch information
atupone committed Oct 21, 2024
1 parent bc4826d commit f63f26e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ if test x$enable_robots != xno; then
AC_DEFINE(ROBOT, 1, [Enabling Robots])
fi

AC_ARG_ENABLE(avx2, [ --enable-avx2 turn on simd])

# debugging and profiling
AC_ARG_ENABLE(debug, [ --enable-debug turn on debugging])
AC_ARG_ENABLE(profiling, [ --enable-profiling turn on profiling])
Expand Down Expand Up @@ -432,6 +434,8 @@ AC_CHECK_HEADERS( \
values.h \
)

AC_DEFINE(GLM_FORCE_AVX2, 1, [ Enable avx2 if available])

if test "x$enable_UPnP" = "xyes"; then
AC_CHECK_HEADERS(
[miniupnpc/miniupnpc.h],
Expand Down Expand Up @@ -687,6 +691,9 @@ case $host_os in
pc)
FLAGS=-mtune=native
CONF_CFLAGS="$CONF_CFLAGS $FLAGS";
if test x$enable_avx2 = xyes ; then
CONF_CXXFLAGS="$CONF_CXXFLAGS -mavx2";
fi
CONF_CXXFLAGS="$CONF_CXXFLAGS $FLAGS";
CONF_CXXFLAGS="$CONF_CXXFLAGS -fsigned-char";;
ppc)
Expand Down

0 comments on commit f63f26e

Please sign in to comment.