MMALIB User Guide
MMALIB_CNN_tensor_convert_ixX_oxX_perfEst.h
Go to the documentation of this file.
1 /******************************************************************************
2  * *
3  * module name :MMALIB *
4  * *
5  * module descripton :Matrix Multiply Accelerator Library module for C7x+MMA *
6  * *
7  * Copyright (C) 2017-2018 Texas Instruments Incorporated - https://www.ti.com/ *
8  * ALL RIGHTS RESERVED *
9  * *
10  ******************************************************************************/
24 #ifndef MMALIB_CNN_TENSOR_CONVERT_IXX_OXX_PERFEST_H_
25 #define MMALIB_CNN_TENSOR_CONVERT_IXX_OXX_PERFEST_H_
26 
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 // This internal perfEst function is called in mmalib test driver (_d.c) which is compiled as a C program
33 // Hence we need to force the compiler to use C linkage as the function symbol
34 
35 
57  const MMALIB_bufParams3D_t *src_addr,
58  const MMALIB_bufParams1D_t *scale_addr,
59  const MMALIB_bufParams3D_t *dst_addr,
61  uint64_t *idealCycles,
62  uint64_t *archCycles,
63  uint64_t *estCycles);
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif // MMALIB_CNN_TENSOR_CONVERT_IXX_OXX_PERFEST_H_
Public header file for MMALIB_CNN_tensor_convert_ixX_oxX function.
void MMALIB_CNN_tensor_convert_ixX_oxX_perfEst(const MMALIB_kernelHandle handle, const MMALIB_bufParams3D_t *src_addr, const MMALIB_bufParams1D_t *scale_addr, const MMALIB_bufParams3D_t *dst_addr, const MMALIB_CNN_tensor_convert_ixX_oxX_InitArgs *pKerInitArgs, uint64_t *idealCycles, uint64_t *archCycles, uint64_t *estCycles)
This function estimates the kernel performance.
void * MMALIB_kernelHandle
Handle type for MMALIB operations.
Definition: MMALIB_types.h:265
Structure containing the parameters initialization of tensor convert function.
A structure for a 1 dimensional buffer descriptor.
A structure for a 3 dimensional buffer descriptor.