add EIGEN_TEST_NEON64, but it's a dummy, AArch64 implies NEON support so extra CXXFLAGS are needed

This commit is contained in:
Konstantinos Margaritis 2014-10-21 18:10:01 +00:00
parent 87524922dc
commit 0f65f2762d
2 changed files with 16 additions and 0 deletions

View File

@ -231,6 +231,14 @@ if(NOT MSVC)
message(STATUS "Enabling NEON in tests/examples")
endif()
option(EIGEN_TEST_NEON64 "Enable/Disable Neon in tests/examples" OFF)
if(EIGEN_TEST_NEON64)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
message(STATUS "Enabling NEON in tests/examples")
endif()
check_cxx_compiler_flag("-fopenmp" COMPILER_SUPPORT_OPENMP)
if(COMPILER_SUPPORT_OPENMP)
option(EIGEN_TEST_OPENMP "Enable/Disable OpenMP in tests/examples" OFF)

View File

@ -294,6 +294,12 @@ macro(ei_testing_print_summary)
message(STATUS "ARM NEON: Using architecture defaults")
endif()
if(EIGEN_TEST_NEON64)
message(STATUS "ARMv8 NEON: ON")
else()
message(STATUS "ARMv8 NEON: Using architecture defaults")
endif()
endif() # vectorization / alignment options
message(STATUS "\n${EIGEN_TESTING_SUMMARY}")
@ -424,6 +430,8 @@ macro(ei_get_cxxflags VAR)
ei_is_64bit_env(IS_64BIT_ENV)
if(EIGEN_TEST_NEON)
set(${VAR} NEON)
elseif(EIGEN_TEST_NEON64)
set(${VAR} NEON)
elseif(EIGEN_TEST_VSX)
set(${VAR} VSX)
elseif(EIGEN_TEST_ALTIVEC)