error out when cuFFT is not found
This commit is contained in:
@ -140,6 +140,9 @@ if(PKG_KSPACE)
|
|||||||
target_compile_definitions(lammps PRIVATE -DFFT_KOKKOS_KISS)
|
target_compile_definitions(lammps PRIVATE -DFFT_KOKKOS_KISS)
|
||||||
elseif(FFT_KOKKOS STREQUAL "CUFFT")
|
elseif(FFT_KOKKOS STREQUAL "CUFFT")
|
||||||
find_library(CUFFT_LIBRARY cufft)
|
find_library(CUFFT_LIBRARY cufft)
|
||||||
|
if (CUFFT_LIBRARY STREQUAL "CUTFFT_LIBRARY-NOTFOUND")
|
||||||
|
message(FATAL_ERROR "Required cuFFT library not found. Check your environment or set CUFFT_LIBRARY to its location")
|
||||||
|
endif()
|
||||||
target_compile_definitions(lammps PRIVATE -DFFT_KOKKOS_CUFFT)
|
target_compile_definitions(lammps PRIVATE -DFFT_KOKKOS_CUFFT)
|
||||||
target_link_libraries(lammps PRIVATE ${CUFFT_LIBRARY})
|
target_link_libraries(lammps PRIVATE ${CUFFT_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user