Go to the source code of this file.
|
| template<typename dataType > |
| DSPLIB_STATUS | DSPLIB_svd_small_init_ci (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams2D_t *bufParamsU, const DSPLIB_bufParams2D_t *bufParamsV, const DSPLIB_bufParams1D_t *bufParamsDiag, const DSPLIB_bufParams1D_t *bufParamsSuperDiag, const DSPLIB_svd_small_InitArgs *pKerInitArgs) |
| | This function is the initialization function for the C7x implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_svd_small_init. More...
|
| |
| template DSPLIB_STATUS | DSPLIB_svd_small_init_ci< double > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams2D_t *bufParamsU, const DSPLIB_bufParams2D_t *bufParamsV, const DSPLIB_bufParams1D_t *bufParamsDiag, const DSPLIB_bufParams1D_t *bufParamsSuperDiag, const DSPLIB_svd_small_InitArgs *pKerInitArgs) |
| |
| template<typename dataType > |
| DSPLIB_STATUS | DSPLIB_svd_small_exec_ci (DSPLIB_kernelHandle handle, void *restrict pA, void *restrict pU, void *restrict pV, void *restrict pDiag, void *restrict pSuperDiag, void *restrict pU1) |
| | This function is the main execution function for the C7x implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_svd_small_exec. More...
|
| |
| template DSPLIB_STATUS | DSPLIB_svd_small_exec_ci< double > (DSPLIB_kernelHandle handle, void *restrict pA, void *restrict pU, void *restrict pV, void *restrict pDiag, void *restrict pSuperDiag, void *restrict pU1) |
| |
◆ MAX_ITERATION_COUNT
| #define MAX_ITERATION_COUNT 30 |
◆ DSPLIB_svd_small_init_ci()
template<typename dataType >
This function is the initialization function for the C7x implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_svd_small_init.
This function determines the configuration for the streaming engine resources based on the function call parameters, and the configuration is saved in bufPBlock array. In the kernel call sequence, DSPLIB_svd_small_exec_ci would be called later independently by the application. When DSPLIB_svd_small_exec_ci runs, it merely retrieves the configuration from the bufPBlock and uses it to set up the hardware resources. This arrangement is so that DSPLIB_svd_small_exec_ci does not lose cycles to determine the hardware configuration.
- Parameters
-
| [in] | handle | : Active handle to the kernel |
| [in] | bufParamsIn | : Pointer to the structure containing dimensional information of input buffer |
| [out] | bufParamsU | : Pointer to the structure containing dimensional information of output buffer U |
| [out] | bufParamsV | : Pointer to the structure containing dimensional information of output buffer V |
| [out] | bufParamsDiag | : Pointer to the structure containing dimensional information of output buffer Diag |
| [out] | bufParamsSuperDiag | : Pointer to the structure containing dimensional information of output buffer SuperDiag |
| [in] | pKerInitArgs | : Pointer to the structure holding init parameters |
- Returns
- Status value indicating success or failure. Refer to DSPLIB_STATUS.
Definition at line 68 of file DSPLIB_svd_small_ci.cpp.
◆ DSPLIB_svd_small_init_ci< double >()
◆ DSPLIB_svd_small_exec_ci()
template<typename dataType >
| DSPLIB_STATUS DSPLIB_svd_small_exec_ci |
( |
DSPLIB_kernelHandle |
handle, |
|
|
void *restrict |
pA, |
|
|
void *restrict |
pU, |
|
|
void *restrict |
pV, |
|
|
void *restrict |
pDiag, |
|
|
void *restrict |
pSuperDiag, |
|
|
void *restrict |
pU1 |
|
) |
| |
This function is the main execution function for the C7x implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_svd_small_exec.
- Parameters
-
| [in] | handle | : Active handle to the kernel |
| [in] | pA | : Pointer to the input buffer pA |
| [out] | pU | : Pointer to the output buffer pU |
| [out] | pV | : Pointer to the output buffer pV |
| [out] | pDiag | : Pointer to the output buffer pDiag |
| [out] | pSuperDiag | : Pointer to the output buffer pSuperDiag |
| [in] | pU1 | : Pointer to the buffer pU1 |
- Returns
- Status value indicating success or failure. Refer to DSPLIB_STATUS.
- 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
- Assumptions:
- The arrays A, U, V, Diag, SuperDiag, U1, V1 and Scratch are stored in distinct arrays In-place processing of A is not allowed.
Definition at line 657 of file DSPLIB_svd_small_ci.cpp.
◆ DSPLIB_svd_small_exec_ci< double >()