mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Added proper support for AVX and FMA in the makefiles.
This commit is contained in:
@@ -270,6 +270,12 @@ macro(ei_testing_print_summary)
|
||||
message(STATUS "AVX: Using architecture defaults")
|
||||
endif()
|
||||
|
||||
if(EIGEN_TEST_FMA)
|
||||
message(STATUS "FMA: ON")
|
||||
else()
|
||||
message(STATUS "FMA: Using architecture defaults")
|
||||
endif()
|
||||
|
||||
if(EIGEN_TEST_ALTIVEC)
|
||||
message(STATUS "Altivec: ON")
|
||||
else()
|
||||
@@ -414,6 +420,10 @@ macro(ei_get_cxxflags VAR)
|
||||
set(${VAR} NEON)
|
||||
elseif(EIGEN_TEST_ALTIVEC)
|
||||
set(${VAR} ALVEC)
|
||||
elseif(EIGEN_TEST_FMA)
|
||||
set(${VAR} FMA)
|
||||
elseif(EIGEN_TEST_AVX)
|
||||
set(${VAR} AVX)
|
||||
elseif(EIGEN_TEST_SSE4_2)
|
||||
set(${VAR} SSE42)
|
||||
elseif(EIGEN_TEST_SSE4_1)
|
||||
|
||||
Reference in New Issue
Block a user