mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-18 14:34:17 +08:00
Added support for AVX512 to the build files
This commit is contained in:
parent
9f9d8d2f62
commit
99093c0fe0
@ -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")
|
||||
|
@ -276,6 +276,12 @@ macro(ei_testing_print_summary)
|
||||
message(STATUS "FMA: Using architecture defaults")
|
||||
endif()
|
||||
|
||||
if(EIGEN_TEST_AVX512)
|
||||
message(STATUS "AVX512: ON")
|
||||
else()
|
||||
message(STATUS "AVX512: Using architecture defaults")
|
||||
endif()
|
||||
|
||||
if(EIGEN_TEST_ALTIVEC)
|
||||
message(STATUS "Altivec: ON")
|
||||
else()
|
||||
|
Loading…
Reference in New Issue
Block a user