Cheetah - SKA - PSS - Prototype Time Domain Search Pipeline
|
Public Member Functions | |
FftPlan () | |
Construct an uninitialised cufft plan. | |
~FftPlan () | |
Destroys the undetlying cufft plan if allocated. | |
template<typename T > | |
cufftHandle const & | plan (FftType fft_type, std::size_t size, std::size_t batch) |
Get (or create) a cufft plan. More... | |
Implementation of FftPlan for cuFFT plans
Definition at line 17 of file FftPlan.cuh.
cufftHandle const & ska::cheetah::fft::cuda::FftPlan::plan | ( | FftType | fft_type, |
std::size_t | size, | ||
std::size_t | batch | ||
) |
Get (or create) a cufft plan.
The plan method will first check if its underlying plan matches the provided arguments. If it matches, a reference to the existing plan is returned. If the arguments do not match the configuration of the exiting plan, the existing plan is destroyed and a new one is created.
[in] | fft_type | The fft type (R2C, C2R or C2C) |
[in] | size | The size of the transform |
[in] | batch | The number of transforms to batch |
T | Base data type being transformed (float or double) |
Definition at line 9 of file FftPlan.cu.