VCSBeam
gpu_fft.hpp
Go to the documentation of this file.
1 #ifndef __GPUFFT_H__
2 #define __GPUFFT_H__
3 
4 #ifdef __NVCC__
5  // NVIDIA / CUFFT :
6 
7  #include <cufftw.h>
8  #include <cufft.h>
9  #define gpufftResult cufftResult
10  #define gpufftDestroy cufftDestroy
11  #define GPUFFT_SUCCESS CUFFT_SUCCESS
12  #define gpufftComplex cufftComplex
13  #define gpufftPlanMany cufftPlanMany
14  #define gpufftHandle cufftHandle
15  #define gpufftPlan2d cufftPlan2d
16  #define gpufftExecC2C cufftExecC2C
17  #define GPUFFT_C2C CUFFT_C2C
18  #define GPUFFT_FORWARD CUFFT_FORWARD
19 #else
20  // AMD / HIP :
21 
22  #include <hipfft.h>
23 
24  #define gpufftResult hipfftResult
25  #define gpufftDestroy hipfftDestroy
26  #define GPUFFT_SUCCESS HIPFFT_SUCCESS
27  #define gpufftComplex hipfftComplex
28  #define gpufftPlanMany hipfftPlanMany
29  #define gpufftHandle hipfftHandle
30  #define gpufftPlan2d hipfftPlan2d
31  #define gpufftExecC2C hipfftExecC2C
32  #define GPUFFT_C2C HIPFFT_C2C
33  #define GPUFFT_FORWARD HIPFFT_FORWARD
34 #endif
35 
36 
37 #endif