Kernel for coordinating the DFT computation by calling one of FFTLIB_FFT_dftSmall_ixX_cxX_oxX, FFTLIB_FFT_dftLarge_ixX_cxX_oxX or FFTLIB_FFT_highRadixDecompositions_ixX_cxX_oxX kernels, depending on fftSize and batchSize parameters.
- If size of data is greater than MMA vector width, then the size is assumed to be a power of 2.
- The kernel requires application to provide a pre-generated computational matrix along with the input data.
|
| int32_t | FFTLIB_FFT_fft_ixX_cxX_oxX_getHandleSize (FFTLIB_FFT_fft_ixX_cxX_oxX_InitArgs *pKerInitArgs) |
| | This is a query function to calculate the size of internal handle. More...
|
| |
| FFTLIB_STATUS | FFTLIB_FFT_fft_ixX_cxX_oxX_getSizes (const FFTLIB_FFT_fft_ixX_cxX_oxX_InitArgs *pKerInitArgs, FFTLIB_bufParams1D_t *bufParamsX, FFTLIB_bufParams1D_t *bufParamsW, FFTLIB_bufParams1D_t *bufParamsY) |
| | This is a query function to calculate the sizes of input, output and the computational matrix buffers. More...
|
| |
| FFTLIB_STATUS | FFTLIB_FFT_fft_ixX_cxX_oxX_twGen (const FFTLIB_FFT_fft_ixX_cxX_oxX_InitArgs *pKerInitArgs, void *pW, const FFTLIB_bufParams1D_t *bufParamsW) |
| | This is a utility function that generates the computational matrix (DFT matrix and twiddle factors) into the provided buffer. More...
|
| |
| FFTLIB_STATUS | FFTLIB_FFT_fft_ixX_cxX_oxX_init (FFTLIB_kernelHandle handle, FFTLIB_bufParams1D_t *bufParamsX, FFTLIB_bufParams1D_t *bufParamsW, FFTLIB_bufParams1D_t *bufParamsY, const FFTLIB_FFT_fft_ixX_cxX_oxX_InitArgs *pKerInitArgs) |
| | This function should be called before the FFTLIB_FFT_fft_ixX_cxX_oxX_exec function is called. This function takes care of any one-time operations such as setting up the configuration of required hardware resources such as the MMA accelerator and the streaming engine. The results of these operations are stored in the handle. More...
|
| |
| FFTLIB_STATUS | FFTLIB_FFT_fft_ixX_cxX_oxX_init_checkParams (FFTLIB_kernelHandle handle, const FFTLIB_bufParams1D_t *bufParamsX, const FFTLIB_bufParams1D_t *bufParamsW, const FFTLIB_bufParams1D_t *bufParamsY, const FFTLIB_FFT_fft_ixX_cxX_oxX_InitArgs *pKerInitArgs) |
| | This function checks the validity of the parameters passed to FFTLIB_FFT_fft_ixX_cxX_oxX_init function. This function is called with the same parameters as the FFTLIB_FFT_fft_ixX_cxX_oxX_init, and this function must be called before the FFTLIB_FFT_fft_ixX_cxX_oxX_init is called. More...
|
| |
| FFTLIB_STATUS | FFTLIB_FFT_fft_ixX_cxX_oxX_exec (FFTLIB_kernelHandle handle, void *restrict pX, void *restrict pW, void *restrict pY) |
| | This function is the main kernel compute function. More...
|
| |
| FFTLIB_STATUS | FFTLIB_FFT_fft_ixX_cxX_oxX_exec_checkParams (FFTLIB_kernelHandle handle, const void *restrict pX, const void *restrict pW, const void *restrict pY) |
| | This function checks the validity of the parameters passed to FFTLIB_FFT_fft_ixX_cxX_oxX_exec function. This function is called with the same parameters as the FFTLIB_FFT_fft_ixX_cxX_oxX_exec, and this function must be called before the FFTLIB_FFT_fft_ixX_cxX_oxX_exec is called. More...
|
| |
◆ FFTLIB_FFT_FFT_IXX_CXX_OXX_NUMSHIFTS
| #define FFTLIB_FFT_FFT_IXX_CXX_OXX_NUMSHIFTS 5 |
Macro to define the number of bit-shifts that are to be provided for use in the internal DFT computation.
The number of bit-shifts depends on the number of stages of computation. There would be 5 stages of computation when FFTLIB_FFT_highRadixDecompositions_ixX_cxX_oxX kernel is called internally by this kernel for the DFT computation.
Definition at line 115 of file FFTLIB_FFT_fft_ixX_cxX_oxX.h.
◆ FFTLIB_FFT_fft_ixX_cxX_oxX_getHandleSize()
This is a query function to calculate the size of internal handle.
- Parameters
-
| [in] | pKerInitArgs | : Pointer to structure holding init parameters |
- Returns
- Size of the buffer in bytes
◆ FFTLIB_FFT_fft_ixX_cxX_oxX_getSizes()
This is a query function to calculate the sizes of input, output and the computational matrix buffers.
- Parameters
-
| [in] | pKerInitArgs | : Pointer to the structure holding init parameters |
| [in] | bufParamsX | : Pointer to the structure containing dimensional information of input buffer |
| [in] | bufParamsW | : Pointer to the structure containing dimensional information of computational matrix buffer |
| [in] | bufParamsY | : Pointer to the structure containing dimensional information of ouput buffer |
- Returns
- Status value indicating success or failure. Refer to FFTLIB_STATUS.
◆ FFTLIB_FFT_fft_ixX_cxX_oxX_twGen()
This is a utility function that generates the computational matrix (DFT matrix and twiddle factors) into the provided buffer.
- Parameters
-
| [in] | pKerInitArgs | : Pointer to the structure holding init parameters |
| [in] | pW | : Pointer to the buffer where the computational matrix is generated into. |
| [in] | bufParamsW | : Pointer to the structure containing dimensional information of computational matrix buffer |
- Returns
- Status value indicating success or failure. Refer to FFTLIB_STATUS.
◆ FFTLIB_FFT_fft_ixX_cxX_oxX_init()
This function should be called before the FFTLIB_FFT_fft_ixX_cxX_oxX_exec function is called. This function takes care of any one-time operations such as setting up the configuration of required hardware resources such as the MMA accelerator and the streaming engine. The results of these operations are stored in the handle.
- Parameters
-
| [in] | handle | : Active handle to the kernel |
| [in] | bufParamsX | : Pointer to the structure containing dimensional information of input buffer |
| [in] | bufParamsW | : Pointer to the structure containing dimensional information of compuatational matrix buffer |
| [out] | bufParamsY | : Pointer to the structure containing dimensional information of ouput buffer |
| [in] | pKerInitArgs | : Pointer to the structure holding init parameters |
- Returns
- Status value indicating success or failure. Refer to FFTLIB_STATUS.
◆ FFTLIB_FFT_fft_ixX_cxX_oxX_init_checkParams()
This function checks the validity of the parameters passed to FFTLIB_FFT_fft_ixX_cxX_oxX_init function. This function is called with the same parameters as the FFTLIB_FFT_fft_ixX_cxX_oxX_init, and this function must be called before the FFTLIB_FFT_fft_ixX_cxX_oxX_init is called.
- Parameters
-
| [in] | handle | : Active handle to the kernel |
| [in] | bufParamsX | : Pointer to the structure containing dimensional information of input buffer |
| [in] | bufParamsW | : Pointer to the structure containing dimensional information of computational matrix |
| [out] | bufParamsY | : Pointer to the structure containing dimensional information of output buffer |
| [in] | pKerInitArgs | : Pointer to the structure holding init parameters |
- Returns
- Status value indicating success or failure. Refer to FFTLIB_STATUS.
◆ FFTLIB_FFT_fft_ixX_cxX_oxX_exec()
This function is the main kernel compute function.
Please refer to details under FFTLIB_FFT_fft_ixX_cxX_oxX
- Parameters
-
| [in] | handle | : Active handle to the kernel |
| [in] | pX | : Pointer to buffer holding the input data |
| [in] | pW | : Pointer to buffer holding the computational matrix |
| [out] | pY | : Pointer to buffer holding the output data |
- Returns
- Status value indicating success or failure. Refer to FFTLIB_STATUS.
- Assumptions:
-
- Performance Considerations:
- For best performance,
- the input and output data buffers are expected to be in L2 memory
- the buffer pointers are assumed to be 64-byte aligned
◆ FFTLIB_FFT_fft_ixX_cxX_oxX_exec_checkParams()
| FFTLIB_STATUS FFTLIB_FFT_fft_ixX_cxX_oxX_exec_checkParams |
( |
FFTLIB_kernelHandle |
handle, |
|
|
const void *restrict |
pX, |
|
|
const void *restrict |
pW, |
|
|
const void *restrict |
pY |
|
) |
| |
This function checks the validity of the parameters passed to FFTLIB_FFT_fft_ixX_cxX_oxX_exec function. This function is called with the same parameters as the FFTLIB_FFT_fft_ixX_cxX_oxX_exec, and this function must be called before the FFTLIB_FFT_fft_ixX_cxX_oxX_exec is called.
- Parameters
-
| [in] | handle | : Active handle to the kernel |
| [in] | pX | : Pointer to buffer holding the input data |
| [in] | pW | : Pointer to buffer holding the computational matrix |
| [out] | pY | : Pointer to buffer holding the output matrix |
- Returns
- Status value indicating success or failure. Refer to FFTLIB_STATUS.