![]() |
DSPLIB User Guide
|
Go to the source code of this file.
Macros | |
| #define | SE_PARAM_BASE (0x0000) |
| #define | SE_SE0_PARAM_OFFSET (SE_PARAM_BASE) |
| #define | SE_SE1_PARAM_OFFSET (SE_SE0_PARAM_OFFSET + SE_PARAM_SIZE) |
| #define | CURR_IDX_VEC_OFFSET (SE_SE1_PARAM_OFFSET + SE_PARAM_SIZE) |
Functions | |
| template<typename dataType > | |
| DSPLIB_STATUS | DSPLIB_minerror_init_ci (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| This function is the initialization function for the C7x implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_minerror_init. More... | |
| template DSPLIB_STATUS | DSPLIB_minerror_init_ci< int64_t > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| template DSPLIB_STATUS | DSPLIB_minerror_init_ci< uint64_t > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| template DSPLIB_STATUS | DSPLIB_minerror_init_ci< int32_t > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| template DSPLIB_STATUS | DSPLIB_minerror_init_ci< uint32_t > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| template DSPLIB_STATUS | DSPLIB_minerror_init_ci< int16_t > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| template DSPLIB_STATUS | DSPLIB_minerror_init_ci< uint16_t > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| template DSPLIB_STATUS | DSPLIB_minerror_init_ci< int8_t > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| template DSPLIB_STATUS | DSPLIB_minerror_init_ci< uint8_t > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| template DSPLIB_STATUS | DSPLIB_minerror_init_ci< float > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| template DSPLIB_STATUS | DSPLIB_minerror_init_ci< double > (DSPLIB_kernelHandle handle, const DSPLIB_bufParams2D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsErrCoefs, const DSPLIB_bufParams1D_t *bufParamsOutIndex, const DSPLIB_bufParams1D_t *bufParamsOutVal, const DSPLIB_minerror_InitArgs *pKerInitArgs) |
| template<typename FloatingPointDataType > | |
| void | minerror_exec_ci_float_inputs (void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal, uint8_t *restrict pBlock, uint32_t vecInSize, uint32_t errCoefsSize, int32_t mainLoopCount) |
| template<typename Integer64BitDataType , typename Integer64BitConversionDataType > | |
| void | minerror_exec_ci_signed_integer64_inputs (void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal, uint8_t *restrict pBlock, uint32_t vecInSize, uint32_t errCoefsSize, int32_t mainLoopCount) |
| template<typename Integer64BitDataType , typename Integer64BitConversionDataType > | |
| void | minerror_exec_ci_unsigned_integer64_inputs (void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal, uint8_t *restrict pBlock, uint32_t vecInSize, uint32_t errCoefsSize, int32_t mainLoopCount) |
| template<typename Integer32BitDataType , typename Integer32BitPromotedDataType > | |
| void | minerror_exec_ci_integer32_inputs (void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal, uint8_t *restrict pBlock, uint32_t vecInSize, uint32_t errCoefsSize, int32_t mainLoopCount) |
| template<typename Integer16BitDataType , typename Integer16BitPromotedDataType > | |
| void | minerror_exec_ci_integer16_inputs (void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal, uint8_t *restrict pBlock, uint32_t vecInSize, uint32_t errCoefsSize, int32_t mainLoopCount) |
| template<typename Integer8BitDataType , typename Integer8BitPromotedDataType > | |
| void | minerror_exec_ci_integer8_inputs (void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal, uint8_t *restrict pBlock, uint32_t vecInSize, uint32_t errCoefsSize, int32_t mainLoopCount) |
| template<> | |
| DSPLIB_STATUS | DSPLIB_minerror_exec_ci< int32_t > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal) |
| template<> | |
| DSPLIB_STATUS | DSPLIB_minerror_exec_ci< uint32_t > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal) |
| template<> | |
| DSPLIB_STATUS | DSPLIB_minerror_exec_ci< int64_t > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal) |
| template<> | |
| DSPLIB_STATUS | DSPLIB_minerror_exec_ci< uint64_t > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal) |
| template<> | |
| DSPLIB_STATUS | DSPLIB_minerror_exec_ci< float > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal) |
| template<> | |
| DSPLIB_STATUS | DSPLIB_minerror_exec_ci< double > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal) |
| template<> | |
| DSPLIB_STATUS | DSPLIB_minerror_exec_ci< int8_t > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal) |
| template<> | |
| DSPLIB_STATUS | DSPLIB_minerror_exec_ci< uint8_t > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal) |
| template<> | |
| DSPLIB_STATUS | DSPLIB_minerror_exec_ci< int16_t > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal) |
| template<> | |
| DSPLIB_STATUS | DSPLIB_minerror_exec_ci< uint16_t > (DSPLIB_kernelHandle handle, void *restrict pIn, void *restrict pErrCoefs, const int *restrict pMaxIndex, const void *restrict pMaxVal) |
| #define SE_PARAM_BASE (0x0000) |
Definition at line 57 of file DSPLIB_minerror_ci.cpp.
| #define SE_SE0_PARAM_OFFSET (SE_PARAM_BASE) |
Definition at line 58 of file DSPLIB_minerror_ci.cpp.
| #define SE_SE1_PARAM_OFFSET (SE_SE0_PARAM_OFFSET + SE_PARAM_SIZE) |
Definition at line 59 of file DSPLIB_minerror_ci.cpp.
| #define CURR_IDX_VEC_OFFSET (SE_SE1_PARAM_OFFSET + SE_PARAM_SIZE) |
Definition at line 60 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_init_ci | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
This function is the initialization function for the C7x implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_minerror_init.
This function determines the configuration for the streaming engine and MMA hardware resources based on the function call parameters, and the configuration is saved in bufPBlock array. In the kernel call sequence, DSPLIB_minerror_exec_ci would be called later independently by the application. When DSPLIB_minerror_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_minerror_exec_ci does not lose cycles to determine the hardware configuration.
| [in] | handle | : Active handle to the kernel |
| [in] | bufParamsIn | : Pointer to the structure containing dimensional information of input buffer |
| [in] | bufParamsErrCoefs | : Pointer to the structure containing error coefficients information of input buffer |
| [out] | pMaxIndex | : Pointer to the structure containing information of ouput buffer |
| [in] | pKerInitArgs | : Pointer to the structure holding init parameters |
Definition at line 63 of file DSPLIB_minerror_ci.cpp.
| template DSPLIB_STATUS DSPLIB_minerror_init_ci< int64_t > | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
| template DSPLIB_STATUS DSPLIB_minerror_init_ci< uint64_t > | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
| template DSPLIB_STATUS DSPLIB_minerror_init_ci< int32_t > | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
| template DSPLIB_STATUS DSPLIB_minerror_init_ci< uint32_t > | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
| template DSPLIB_STATUS DSPLIB_minerror_init_ci< int16_t > | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
| template DSPLIB_STATUS DSPLIB_minerror_init_ci< uint16_t > | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
| template DSPLIB_STATUS DSPLIB_minerror_init_ci< int8_t > | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
| template DSPLIB_STATUS DSPLIB_minerror_init_ci< uint8_t > | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
| template DSPLIB_STATUS DSPLIB_minerror_init_ci< float > | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
| template DSPLIB_STATUS DSPLIB_minerror_init_ci< double > | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams2D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsErrCoefs, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutIndex, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOutVal, | ||
| const DSPLIB_minerror_InitArgs * | pKerInitArgs | ||
| ) |
|
inline |
Definition at line 323 of file DSPLIB_minerror_ci.cpp.
|
inline |
Definition at line 448 of file DSPLIB_minerror_ci.cpp.
|
inline |
Definition at line 696 of file DSPLIB_minerror_ci.cpp.
|
inline |
Definition at line 946 of file DSPLIB_minerror_ci.cpp.
|
inline |
Definition at line 1074 of file DSPLIB_minerror_ci.cpp.
|
inline |
Definition at line 1182 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_exec_ci< int32_t > | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn, | ||
| void *restrict | pErrCoefs, | ||
| const int *restrict | pMaxIndex, | ||
| const void *restrict | pMaxVal | ||
| ) |
Definition at line 1473 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_exec_ci< uint32_t > | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn, | ||
| void *restrict | pErrCoefs, | ||
| const int *restrict | pMaxIndex, | ||
| const void *restrict | pMaxVal | ||
| ) |
Definition at line 1512 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_exec_ci< int64_t > | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn, | ||
| void *restrict | pErrCoefs, | ||
| const int *restrict | pMaxIndex, | ||
| const void *restrict | pMaxVal | ||
| ) |
Definition at line 1550 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_exec_ci< uint64_t > | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn, | ||
| void *restrict | pErrCoefs, | ||
| const int *restrict | pMaxIndex, | ||
| const void *restrict | pMaxVal | ||
| ) |
Definition at line 1588 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_exec_ci< float > | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn, | ||
| void *restrict | pErrCoefs, | ||
| const int *restrict | pMaxIndex, | ||
| const void *restrict | pMaxVal | ||
| ) |
Definition at line 1625 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_exec_ci< double > | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn, | ||
| void *restrict | pErrCoefs, | ||
| const int *restrict | pMaxIndex, | ||
| const void *restrict | pMaxVal | ||
| ) |
Definition at line 1663 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_exec_ci< int8_t > | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn, | ||
| void *restrict | pErrCoefs, | ||
| const int *restrict | pMaxIndex, | ||
| const void *restrict | pMaxVal | ||
| ) |
Definition at line 1699 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_exec_ci< uint8_t > | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn, | ||
| void *restrict | pErrCoefs, | ||
| const int *restrict | pMaxIndex, | ||
| const void *restrict | pMaxVal | ||
| ) |
Definition at line 1741 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_exec_ci< int16_t > | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn, | ||
| void *restrict | pErrCoefs, | ||
| const int *restrict | pMaxIndex, | ||
| const void *restrict | pMaxVal | ||
| ) |
Definition at line 1782 of file DSPLIB_minerror_ci.cpp.
| DSPLIB_STATUS DSPLIB_minerror_exec_ci< uint16_t > | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn, | ||
| void *restrict | pErrCoefs, | ||
| const int *restrict | pMaxIndex, | ||
| const void *restrict | pMaxVal | ||
| ) |
Definition at line 1817 of file DSPLIB_minerror_ci.cpp.