Skip to content

Commit

Permalink
Add FFT conditional.
Browse files Browse the repository at this point in the history
  • Loading branch information
cemitch99 committed Dec 5, 2024
1 parent 4bbc64f commit b48846c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions cmake/dependencies/ABLASTR.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b48846c

Please sign in to comment.