From 70d130ff1a217c30eb0b23310f6a8b9432c3c6c7 Mon Sep 17 00:00:00 2001 From: cflag Date: Sun, 15 Jan 2023 09:37:07 +0100 Subject: [PATCH] Minor update --- README.md | 2 +- src/fft_log.f90 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 143beaf5..1de50561 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ The external code can use the named variables to check the FFT backend used in a - The generic backend supports the OVERWRITE flag but it can not perform in-place transforms - The FFTW3 and FFTW3_F03 backends support the OVERWRITE flag and can perform in-place complex 1D fft - The oneMKL backend supports the OVERWRITE flag and can perform in-place complex 1D fft -- The cuFFT backend supports the OVERWRITE flag but it can not perform in-place transforms +- The cuFFT backend supports the OVERWRITE flag and can perform in-place complex 1D fft ## Miscellaneous diff --git a/src/fft_log.f90 b/src/fft_log.f90 index 85d59352..b0608486 100644 --- a/src/fft_log.f90 +++ b/src/fft_log.f90 @@ -53,11 +53,11 @@ module subroutine decomp_2d_fft_log(backend) call decomp_info_print(sp, io_unit, "sp") write (io_unit, *) '' #ifdef OVERWRITE - if (D2D_FFT_BACKEND == D2D_FFT_BACKEND_GENERIC .or. & - D2D_FFT_BACKEND == D2D_FFT_BACKEND_CUFFT) then + if (D2D_FFT_BACKEND == D2D_FFT_BACKEND_GENERIC) then write (io_unit, *) 'OVERWRITE is supported but transforms are not performed in-place' write (io_unit, *) '' - else if (D2D_FFT_BACKEND == D2D_FFT_BACKEND_FFTW3 .or. & + else if (D2D_FFT_BACKEND == D2D_FFT_BACKEND_CUFFT .or. & + D2D_FFT_BACKEND == D2D_FFT_BACKEND_FFTW3 .or. & D2D_FFT_BACKEND == D2D_FFT_BACKEND_FFTW3_F03 .or. & D2D_FFT_BACKEND == D2D_FFT_BACKEND_MKL) then write (io_unit, *) 'OVERWRITE is supported but in-place transforms is limited to complex transforms'