Adding PocketFFT support in FFT module since kissfft has some flaw in accuracy and performance

This commit is contained in:
Guoqiang QI
2022-05-11 17:44:22 +00:00
committed by Rasmus Munk Larsen
parent 73d65dbc43
commit 00b75375e7
8 changed files with 390 additions and 273 deletions

View File

@@ -77,6 +77,17 @@ else()
ei_add_property(EIGEN_MISSING_BACKENDS "fftw, ")
endif()
find_path(POCKETFFT pocketfft_hdronly.h)
if(POCKETFFT)
if(EIGEN_TEST_CXX11)
ei_add_property(EIGEN_TESTED_BACKENDS "pocketfft, ")
include_directories( ${POCKETFFT} )
ei_add_test(pocketfft "-pthread" "${CMAKE_THREAD_LIBS_INIT}" "-DEIGEN_POCKETFFT_DEFAULT" )
endif()
else()
ei_add_property(EIGEN_MISSING_BACKENDS "pocketfft, ")
endif()
option(EIGEN_TEST_OPENGL "Enable OpenGL support in unit tests" OFF)
if(EIGEN_TEST_OPENGL)
find_package(OpenGL)