mirror of
https://github.com/paboyle/Grid.git
synced 2025-04-09 21:50:45 +01:00
AMD FMA4 addition
This commit is contained in:
parent
83afb2e26a
commit
d4289a33b8
13
configure
vendored
13
configure
vendored
@ -1384,7 +1384,7 @@ Optional Features:
|
|||||||
--disable-dependency-tracking
|
--disable-dependency-tracking
|
||||||
speeds up one-time build
|
speeds up one-time build
|
||||||
--disable-openmp do not use OpenMP
|
--disable-openmp do not use OpenMP
|
||||||
--enable-simd=SSE4|AVX|AVX2|AVX512|IMCI
|
--enable-simd=SSE4|AVX|AVXFMA4|AVX2|AVX512|IMCI
|
||||||
Select instructions to be SSE4.0, AVX 1.0, AVX
|
Select instructions to be SSE4.0, AVX 1.0, AVX
|
||||||
2.0+FMA, AVX 512, IMCI
|
2.0+FMA, AVX 512, IMCI
|
||||||
--enable-precision=single|double
|
--enable-precision=single|double
|
||||||
@ -6403,6 +6403,17 @@ $as_echo "#define AVX1 1" >>confdefs.h
|
|||||||
$as_echo "$as_me: WARNING: Your processor does not support AVX instructions" >&2;}
|
$as_echo "$as_me: WARNING: Your processor does not support AVX instructions" >&2;}
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
AVXFMA4)
|
||||||
|
echo Configuring for AVX
|
||||||
|
|
||||||
|
$as_echo "#define AVXFMA4 1" >>confdefs.h
|
||||||
|
|
||||||
|
if test x"$ax_cv_support_avx_ext" = x"yes"; then supported=yes
|
||||||
|
else
|
||||||
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your processor does not support AVX instructions" >&5
|
||||||
|
$as_echo "$as_me: WARNING: Your processor does not support AVX instructions" >&2;}
|
||||||
|
fi
|
||||||
|
;;
|
||||||
AVX2)
|
AVX2)
|
||||||
echo Configuring for AVX2
|
echo Configuring for AVX2
|
||||||
|
|
||||||
|
11
configure.ac
11
configure.ac
@ -65,7 +65,7 @@ AC_CHECK_FUNCS([gettimeofday])
|
|||||||
#Please install or provide the correct path to your installation
|
#Please install or provide the correct path to your installation
|
||||||
#Info at: http://www.mpfr.org/)])
|
#Info at: http://www.mpfr.org/)])
|
||||||
|
|
||||||
AC_ARG_ENABLE([simd],[AC_HELP_STRING([--enable-simd=SSE4|AVX|AVX2|AVX512|IMCI],\
|
AC_ARG_ENABLE([simd],[AC_HELP_STRING([--enable-simd=SSE4|AVX|AVXFMA4|AVX2|AVX512|IMCI],\
|
||||||
[Select instructions to be SSE4.0, AVX 1.0, AVX 2.0+FMA, AVX 512, IMCI])],\
|
[Select instructions to be SSE4.0, AVX 1.0, AVX 2.0+FMA, AVX 512, IMCI])],\
|
||||||
[ac_SIMD=${enable_simd}],[ac_SIMD=AVX2])
|
[ac_SIMD=${enable_simd}],[ac_SIMD=AVX2])
|
||||||
|
|
||||||
@ -90,6 +90,15 @@ case ${ac_SIMD} in
|
|||||||
AC_MSG_WARN([Your processor does not support AVX instructions])
|
AC_MSG_WARN([Your processor does not support AVX instructions])
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
AVXFMA4)
|
||||||
|
echo Configuring for AVX
|
||||||
|
AC_DEFINE([AVXFMA4],[1],[AVX Intrinsics with FMA4] )
|
||||||
|
if test x"$ax_cv_support_avx_ext" = x"yes"; then dnl minimal support for AVX
|
||||||
|
supported=yes
|
||||||
|
else
|
||||||
|
AC_MSG_WARN([Your processor does not support AVX instructions])
|
||||||
|
fi
|
||||||
|
;;
|
||||||
AVX2)
|
AVX2)
|
||||||
echo Configuring for AVX2
|
echo Configuring for AVX2
|
||||||
AC_DEFINE([AVX2],[1],[AVX2 Intrinsics] )
|
AC_DEFINE([AVX2],[1],[AVX2 Intrinsics] )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user