diff options
author | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-01-05 10:02:49 -0800 |
---|---|---|
committer | Benoit Steiner <benoit.steiner.goog@gmail.com> | 2016-01-05 10:02:49 -0800 |
commit | 99093c0fe0f37acda99791597a743eae66eb9c8e (patch) | |
tree | cbc76e841dd9c77ed5eb0d62645575f315a5a49a /CMakeLists.txt | |
parent | 9f9d8d2f628b552092ff94875e614a9a0ce39827 (diff) |
Added support for AVX512 to the build files
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index eaee5d5e2..5707b72df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -221,6 +221,12 @@ if(NOT MSVC) message(STATUS "Enabling FMA in tests/examples") endif() + option(EIGEN_TEST_AVX512 "Enable/Disable AVX512 in tests/examples" OFF) + if(EIGEN_TEST_AVX512) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mavx512f") + message(STATUS "Enabling AVX512 in tests/examples") + endif() + option(EIGEN_TEST_ALTIVEC "Enable/Disable AltiVec in tests/examples" OFF) if(EIGEN_TEST_ALTIVEC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -maltivec -mabi=altivec") |