31 template <
typename dataType>
41 uint32_t blockSize = pKerPrivArgs->
blockSize;
44 printf(
"Enter DSPLIB_w_vec_exec_cn\n");
47 dataType *pInLocal1 = (dataType *) pIn1;
48 dataType *pInLocal2 = (dataType *) pIn2;
49 dataType *pMLocal = (dataType *) pM;
50 dataType *pOutLocal = (dataType *) pOut;
53 printf(
"Enter pInLocal1 %p pInLocal2 %p pMLocal %p pOut %p\n", pInLocal1, pInLocal2, pMLocal, pOut);
57 dataType a, b, w, out;
63 for (int32_t counter = 0; counter < blockSize; counter++) {
68 printf(
"counter %d a %f b %f w %f \n", counter, a, b, w);
74 printf(
"counter %d y %f\n", counter, out);
90 for (int32_t counter = 0; counter < blockSize; counter++) {
96 printf(
"counter %d a %d b %d\n", counter, a, b);
100 #if DSPLIB_DEBUGPRINT
102 printf(
"counter %d y %d\n", counter, out);
117 void *restrict pOut);
123 void *restrict pOut);
129 void *restrict pOut);
135 void *restrict pOut);
141 void *restrict pOut);
147 void *restrict pOut);
153 void *restrict pOut);
159 void *restrict pOut);
template DSPLIB_STATUS DSPLIB_w_vec_exec_cn< uint16_t >(DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut)
template DSPLIB_STATUS DSPLIB_w_vec_exec_cn< int8_t >(DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut)
template DSPLIB_STATUS DSPLIB_w_vec_exec_cn< float >(DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut)
template DSPLIB_STATUS DSPLIB_w_vec_exec_cn< int16_t >(DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut)
template DSPLIB_STATUS DSPLIB_w_vec_exec_cn< uint32_t >(DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut)
template DSPLIB_STATUS DSPLIB_w_vec_exec_cn< double >(DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut)
template DSPLIB_STATUS DSPLIB_w_vec_exec_cn< int32_t >(DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut)
template DSPLIB_STATUS DSPLIB_w_vec_exec_cn< uint8_t >(DSPLIB_kernelHandle handle, void *restrict pIn1, void *restrict pIn2, void *restrict pM, void *restrict pOut)
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....
Header file for kernel's internal use. For the kernel's interface, please see DSPLIB_w_vec.
DSPLIB_STATUS_NAME
The enumeration of all status codes.
void * DSPLIB_kernelHandle
Handle type for DSPLIB operations.
DSPLIB_w_vec_weightStyle
Enumeration for w_vec flag pertaining to scalar or vector input weight.
@ DSPLIB_SCALAR
Input Weight is a Scalar.
DSPLIB_w_vec_weightStyle weightStyle
Weight Input Style
Structure that is reserved for internal use by the kernel.
DSPLIB_w_vec_InitArgs initArgs
int32_t blockSize
Size of input buffer for different batches DSPLIB_w_vec_init that will be retrieved and used by DSPLI...