![]() |
DSPLIB User Guide
|
Header file for kernel's internal use. For the kernel's interface, please see DSPLIB_w_vec.
Definition in file DSPLIB_w_vec_priv.h.
Go to the source code of this file.
Data Structures | |
| struct | DSPLIB_w_vec_PrivArgs |
| Structure that is reserved for internal use by the kernel. More... | |
Macros | |
| #define | DSPLIB_W_VEC_IXX_IXX_OXX_PBLOCK_SIZE (2 * SE_PARAM_SIZE + 1 * DSPLIB_PARAM_SIZE + 2 * sizeof(int32_t)) |
| Macro to define the size of bufPblock array of DSPLIB_w_vec_PrivArgs structure. More... | |
Typedefs | |
| typedef DSPLIB_STATUS(* | pFxnDSPLIB_w_vec_exec) (DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut) |
| This is a function pointer type that conforms to the declaration of DSPLIB_w_vec_s_exec_ci, DSPLIB_w_vec_v_exec_ci and DSPLIB_w_vec_s_exec_cn, DSPLIB_w_vec_v_exec_cn. More... | |
Functions | |
| template<typename dataType > | |
| DSPLIB_STATUS | DSPLIB_w_vec_init_ci (DSPLIB_kernelHandle handle, const DSPLIB_bufParams1D_t *bufParamsIn, const DSPLIB_bufParams1D_t *bufParamsOut, const DSPLIB_w_vec_InitArgs *pKerInitArgs) |
| This function is the initialization function for the C7x implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_w_vec_init. More... | |
| template<typename dataType > | |
| DSPLIB_STATUS | DSPLIB_w_vec_exec_ci (DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut) |
| This function is the main execution function for the C7x implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_w_vec_exec. More... | |
| template<typename dataType > | |
| DSPLIB_STATUS | DSPLIB_w_vec_exec_cn (DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut) |
| This function is the main execution function for the natural C implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_w_vec_exec. More... | |
| #define DSPLIB_W_VEC_IXX_IXX_OXX_PBLOCK_SIZE (2 * SE_PARAM_SIZE + 1 * DSPLIB_PARAM_SIZE + 2 * sizeof(int32_t)) |
Macro to define the size of bufPblock array of DSPLIB_w_vec_PrivArgs structure.
Definition at line 39 of file DSPLIB_w_vec_priv.h.
| typedef DSPLIB_STATUS(* pFxnDSPLIB_w_vec_exec) (DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut) |
This is a function pointer type that conforms to the declaration of DSPLIB_w_vec_s_exec_ci, DSPLIB_w_vec_v_exec_ci and DSPLIB_w_vec_s_exec_cn, DSPLIB_w_vec_v_exec_cn.
Definition at line 46 of file DSPLIB_w_vec_priv.h.
| DSPLIB_STATUS DSPLIB_w_vec_init_ci | ( | DSPLIB_kernelHandle | handle, |
| const DSPLIB_bufParams1D_t * | bufParamsIn, | ||
| const DSPLIB_bufParams1D_t * | bufParamsOut, | ||
| const DSPLIB_w_vec_InitArgs * | pKerInitArgs | ||
| ) |
This function is the initialization function for the C7x implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_w_vec_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_w_vec_v_exec_ci or DSPLIB_w_vec_s_exec_ci would be called later independently by the application. When DSPLIB_w_vec_v_exec_ci/ DSPLIB_w_vec_s_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 the exec functions do 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 |
| [out] | bufParamsOut | : Pointer to the structure containing dimensional information of ouput buffer |
| [in] | pKerInitArgs | : Pointer to the structure holding init parameters |
Definition at line 59 of file DSPLIB_w_vec_ci.cpp.
| DSPLIB_STATUS DSPLIB_w_vec_exec_ci | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn1, | ||
| void *restrict | pIn2, | ||
| void *restrict | pM, | ||
| void *restrict | pOut | ||
| ) |
This function is the main execution function for the C7x implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_w_vec_exec.
TBD
| [in] | handle | : Active handle to the kernel |
| [in] | pIn1 | : Pointer to buffer holding the input data 1 |
| [in] | pIn2 | : Pointer to buffer holding input data 2 |
| [in] | pM | : Pointer to buffer holding weight factor |
| [out] | pOut | : Pointer to buffer holding the output data |
Definition at line 211 of file DSPLIB_w_vec_ci.cpp.
| DSPLIB_STATUS DSPLIB_w_vec_exec_cn | ( | DSPLIB_kernelHandle | handle, |
| void *restrict | pIn1, | ||
| void *restrict | pIn2, | ||
| void *restrict | pM, | ||
| void *restrict | pOut | ||
| ) |
This function is the main execution function for the natural C implementation of the kernel. The function declaration conforms to the declaration of DSPLIB_w_vec_exec.
TBD
| [in] | handle | : Active handle to the kernel |
| [in] | pIn1 | : Pointer to buffer holding the input data 1 |
| [in] | pIn2 | : Pointer to buffer holding the input data 2 data |
| [in] | pM | : Pointer to buffer holding weight factor data |
| [out] | pOut | : Pointer to buffer holding the output data |
Definition at line 32 of file DSPLIB_w_vec_cn.cpp.