Skip to content

Commit

Permalink
CMake: No FFTW Needed for SYCL anymore
Browse files Browse the repository at this point in the history
We do not need FFTW3 anymore to do FFTs on SYCL GPUs.
  • Loading branch information
ax3l committed Oct 9, 2024
1 parent 1d2910e commit b16c204
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cmake/dependencies/FFT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,20 @@ if(ABLASTR_FFT)
#

# cuFFT (CUDA)
# TODO: check if `find_package` search works
if(WarpX_COMPUTE STREQUAL HIP)
# nothing to do (cuFFT is part of the CUDA SDK)
# TODO: check if `find_package` search works for cuFFT

# rocFFT (HIP)
if(WarpX_COMPUTE STREQUAL HIP)
elseif(WarpX_COMPUTE STREQUAL HIP)
find_package(rocfft REQUIRED)

# FFTW (NOACC, OMP, SYCL)
elseif(NOT WarpX_COMPUTE STREQUAL CUDA)
elseif(WarpX_COMPUTE STREQUAL SYCL)
# nothing to do (oneMKL is part of oneAPI)
# TODO: check if `find_package` search works for oneMKL

# FFTW (NOACC, OMP)
elseif()
# On Windows, try searching for FFTW3(f)Config.cmake files first
# Installed .pc files wrongly and unconditionally add -lm
# https://github.com/FFTW/fftw3/issues/236
Expand Down

0 comments on commit b16c204

Please sign in to comment.