Unverified Commit 53554fdb authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

add -DFFT_CUFFT for KOKKOS only when KISSFFT is not selected

parent 70731468
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -43,10 +43,12 @@ if(PKG_KOKKOS)
                                   ${KOKKOS_PKG_SOURCES_DIR}/gridcomm_kokkos.cpp
                                   ${KOKKOS_PKG_SOURCES_DIR}/remap_kokkos.cpp)
    if(KOKKOS_ENABLE_CUDA)
      if(NOT ${FFT} STREQUAL "KISS")
        add_definitions(-DFFT_CUFFT)
        list(APPEND LAMMPS_LINK_LIBS cufft)
      endif()
    endif()
  endif()

  set_property(GLOBAL PROPERTY "KOKKOS_PKG_SOURCES" "${KOKKOS_PKG_SOURCES}")