From b48846c75cc1c02d4d875eb7699ce13794124582 Mon Sep 17 00:00:00 2001 From: Chad Mitchell Date: Thu, 5 Dec 2024 10:35:04 -0800 Subject: [PATCH] Add FFT conditional. --- cmake/dependencies/ABLASTR.cmake | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/cmake/dependencies/ABLASTR.cmake b/cmake/dependencies/ABLASTR.cmake index 3b2f1bfa2..516659673 100644 --- a/cmake/dependencies/ABLASTR.cmake +++ b/cmake/dependencies/ABLASTR.cmake @@ -35,6 +35,15 @@ macro(find_ablastr) endif() endif() + # control FFT cache (option 1) + if(ImpactX_amrex_internal OR ImpactX_amrex_src) + if(ImpactX_FFT) + set(AMReX_FFT ON CACHE INTERNAL "") + else() + set(AMReX_FFT OFF CACHE INTERNAL "") + endif() + endif() + # transitive control for openPMD superbuild if(ImpactX_openpmd_src) set(WarpX_openpmd_src ${ImpactX_openpmd_src} CACHE PATH @@ -71,6 +80,13 @@ macro(find_ablastr) set(WarpX_MPI_THREAD_MULTIPLE ${ImpactX_MPI_THREAD_MULTIPLE} CACHE INTERNAL "" FORCE) set(WarpX_IPO ${ImpactX_IPO} CACHE INTERNAL "" FORCE) + # control FFT cache (option 2) + #if(ImpactX_FFT) + # set(AMReX_FFT ON CACHE INTERNAL "") + #else() + # set(AMReX_FFT OFF CACHE INTERNAL "") + #endif() + # shared libs, i.e. for Python bindings, need relocatable code if(ImpactX_PYTHON OR BUILD_SHARED_LIBS) set(AMReX_PIC ON CACHE INTERNAL