1#ifndef PSCF_FFT_BATCHED_CU_H
2#define PSCF_FFT_BATCHED_CU_H
11#include <pscf/backend/cuda/cudaTypes.h>
12#include <pscf/backend/cuda/BackendArray.h>
13#include <pscf/math/IntVec.h>
151 void makePlans(
int batchSize);
163 template <
int D>
inline
165 {
return meshDimensions_; }
168 template <
int D>
inline
Batched Fourier transform wrapper for real data.
void inverseTransformUnsafe(BackendArray< cudaComplex, CUT > &kFields, BackendArray< cudaReal, CUT > &rFields) const
Compute inverse (complex-to-real) Fourier transform.
FFTBatched()
Default constructor.
void forwardTransform(BackendArray< cudaReal, CUT > const &rFields, BackendArray< cudaComplex, CUT > &kFields) const
Compute batched forward (real-to-complex) DFTs.
const IntVec< D > & meshDimensions() const
Return the dimensions of the grid for which this was allocated.
void resetBatchSize(int batchSize)
Set the batch size to a new value.
void setup(IntVec< D > const &meshDimensions, int batchSize)
Set up FFT calculation (get grid dimensions and make FFT plan).
bool isSetup() const
Has the setup method been called?
An IntVec<D, T> is a D-component vector of elements of integer type T.
File containing preprocessor macros for error handling.
PSCF package top-level namespace.