Initial VSX commit

This commit is contained in:
Konstantinos Margaritis
2014-08-29 20:03:49 +00:00
parent 01f3ca3e8d
commit 7ff266e3ce
10 changed files with 284 additions and 11 deletions

View File

@@ -219,6 +219,12 @@ if(NOT MSVC)
message(STATUS "Enabling AltiVec in tests/examples")
endif()
option(EIGEN_TEST_VSX "Enable/Disable VSX in tests/examples" OFF)
if(EIGEN_TEST_VSX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -mvsx")
message(STATUS "Enabling VSX in tests/examples")
endif()
option(EIGEN_TEST_NEON "Enable/Disable Neon in tests/examples" OFF)
if(EIGEN_TEST_NEON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon -mcpu=cortex-a8")