• Marcin Tolysz's avatar
    Improve arm64 support. (#676) · 4b321057
    Marcin Tolysz authored
    * Improve Arm64 support.
    
    Make library compile and run on Arm64 8.2 (Nvidia Xavier arm+cuda)
    `configure` is regenerated
    
    * remove simd from utils.cpp
    4b321057
ax_check_cpu.m4 473 Bytes

# serial 1

AC_DEFUN([AX_CPU_ARCH], [

AC_MSG_CHECKING([for cpu arch])
AC_CANONICAL_TARGET

case $target in
  amd64-* | x86_64-*)
    ARCH_CPUFLAGS="-msse4 -mpopcnt"
    ARCH_CXXFLAGS="-m64"
    ;;
  aarch64*-*)
dnl This is an arch for Nvidia Xavier a proper detection would be nice.
    ARCH_CPUFLAGS="-march=armv8.2-a"
    ;;
  *) ;;
esac
AC_MSG_RESULT([$target CPUFLAGS+=$ARCH_CPUFLAGS CXXFLAGS+=$ARCH_CXXFLAGS])

AC_SUBST(ARCH_CPUFLAGS)
AC_SUBST(ARCH_CXXFLAGS)

])dnl