WarpX
|
Functions | |
void | setup () |
void | cleanup () |
std::string | cufftErrorToString (const cufftResult &err) |
This method converts a cufftResult into the corresponding string. More... | |
FFTplan | CreatePlan (const amrex::IntVect &real_size, amrex::Real *const real_array, Complex *const complex_array, const direction dir, const int dim) |
void | DestroyPlan (FFTplan &fft_plan) |
void | Execute (FFTplan &fft_plan) |
std::string | rocfftErrorToString (const rocfft_status err) |
This method converts a rocfftResult into the corresponding string. More... | |
Variables | |
cufftType | VendorR2C = CUFFT_D2Z |
cufftType | VendorC2R = CUFFT_Z2D |
const auto | VendorCreatePlanR2C3D = fftw_plan_dft_r2c_3d |
const auto | VendorCreatePlanC2R3D = fftw_plan_dft_c2r_3d |
const auto | VendorCreatePlanR2C2D = fftw_plan_dft_r2c_2d |
const auto | VendorCreatePlanC2R2D = fftw_plan_dft_c2r_2d |
Wrapper around FFT libraries. The header file defines the API and the base types (Complex and VendorFFTPlan), and the implementation for different FFT libraries is done in different cpp files. This wrapper only depends on the underlying FFT library AND on AMReX (There is no dependence on WarpX).
void ablastr::math::anyfft::cleanup | ( | ) |
This function is a wrapper around rocff_cleanup(). It is a no-op in case rocfft is not used.
FFTplan ablastr::math::anyfft::CreatePlan | ( | const amrex::IntVect & | real_size, |
amrex::Real *const | real_array, | ||
Complex *const | complex_array, | ||
const direction | dir, | ||
const int | dim | ||
) |
std::string ablastr::math::anyfft::cufftErrorToString | ( | const cufftResult & | err | ) |
This method converts a cufftResult into the corresponding string.
[in] | err | a cufftResult |
void ablastr::math::anyfft::DestroyPlan | ( | FFTplan & | fft_plan | ) |
void ablastr::math::anyfft::Execute | ( | FFTplan & | fft_plan | ) |
std::string ablastr::math::anyfft::rocfftErrorToString | ( | const rocfft_status | err | ) |
This method converts a rocfftResult into the corresponding string.
[in] | err | a rocfftResult |
void ablastr::math::anyfft::setup | ( | ) |
This function is a wrapper around rocff_setup(). It is a no-op in case rocfft is not used.
cufftType ablastr::math::anyfft::VendorC2R = CUFFT_Z2D |
const auto ablastr::math::anyfft::VendorCreatePlanC2R2D = fftw_plan_dft_c2r_2d |
const auto ablastr::math::anyfft::VendorCreatePlanC2R3D = fftw_plan_dft_c2r_3d |
const auto ablastr::math::anyfft::VendorCreatePlanR2C2D = fftw_plan_dft_r2c_2d |
const auto ablastr::math::anyfft::VendorCreatePlanR2C3D = fftw_plan_dft_r2c_3d |
cufftType ablastr::math::anyfft::VendorR2C = CUFFT_D2Z |