1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-08-25 15:37:10 +01:00

FFTW guarded after CUDA adn HIP

This commit is contained in:
2025-08-21 22:00:12 +01:00
parent fe0db53842
commit 583fa7bb0a

View File

@@ -36,6 +36,7 @@ Author: Peter Boyle <paboyle@ph.ed.ac.uk>
#include <hipfft/hipfft.h> #include <hipfft/hipfft.h>
#endif #endif
#if !defined(GRID_CUDA) && !defined(GRID_HIP)
#ifdef HAVE_FFTW #ifdef HAVE_FFTW
#if defined(USE_MKL) || defined(GRID_SYCL) #if defined(USE_MKL) || defined(GRID_SYCL)
#include <fftw/fftw3.h> #include <fftw/fftw3.h>
@@ -43,6 +44,7 @@ Author: Peter Boyle <paboyle@ph.ed.ac.uk>
#include <fftw3.h> #include <fftw3.h>
#endif #endif
#endif #endif
#endif
NAMESPACE_BEGIN(Grid); NAMESPACE_BEGIN(Grid);
@@ -174,6 +176,7 @@ public:
}; };
#endif #endif
#if !defined(GRID_CUDA) && !defined(GRID_HIP)
#ifdef HAVE_FFTW #ifdef HAVE_FFTW
template<> struct FFTW<ComplexD> { template<> struct FFTW<ComplexD> {
public: public:
@@ -216,6 +219,7 @@ public:
} }
}; };
#endif #endif
#endif
class FFT { class FFT {
private: private: