![]() |
MMALIB User Guide
|
File to hold common structure, enums, macros and functions for MMALIB.
Definition in file MMALIB_types.h.
Go to the source code of this file.
Macros | |
#define | MMALIB_DEBUGPRINT 0 |
Enable debug printf statements. More... | |
#define | MMALIB_const const |
#define | __PRAGMA(x) _Pragma(#x) |
#define | __INLINE_FUNC(x) __PRAGMA(FUNC_ALWAYS_INLINE(x)) |
#define | MMALIB_PRINTF(fmt, ...) |
#define | MMALIB_DEBUGPRINTFN(N, fmt, ...) |
#define | MMALIB_MESG(fmt, ...) |
#define | MMALIB_SOFT_MMA_RESET 0 |
#define | MMALIB_STATIC_INLINE static inline |
#define | MMALIB_PARAM_SIZE 128 |
Parameter structure size in bytes. More... | |
#define | MMALIB_BYTE_WIDTH __MMA_A_COLS(sizeof(int8_t)) |
MMA width in bytes. More... | |
#define | MMALIB_MMA_ACCUMULATOR_BYTE_WIDTH_8_BIT 4 |
MMA accumulator width in bytes for 8 bit output data width. More... | |
#define | MMALIB_MMA_ACCUMULATOR_BYTE_WIDTH_16_BIT 8 |
MMA accumulator width in bytes for 16 bit output data width. More... | |
#define | MMALIB_MMA_ACCUMULATOR_BYTE_WIDTH_32_BIT 16 |
MMA accumulator width in bytes for 32 bit output data width. More... | |
#define | MMALIB_ALIGN_SHIFT_64BYTES 6 |
Number of bits to shift for 64-byte memory alignment. More... | |
#define | MMALIB_ALIGN_SHIFT_128BYTES 7 |
Number of bits to shift for 128-byte memory alignment. More... | |
#define | MMALIB_ALIGN_SHIFT_256BYTES 8 |
Number of bits to shift for 256-byte memory alignment. More... | |
#define | MMALIB_ALIGN_64BYTES (1 << MMALIB_ALIGN_SHIFT_64BYTES) |
Align by 64-byte memory alignment. More... | |
#define | MMALIB_ALIGN_128BYTES (1 << MMALIB_ALIGN_SHIFT_128BYTES) |
Align by 128-byte memory alignment. More... | |
#define | MMALIB_ALIGN_256BYTES (1 << MMALIB_ALIGN_SHIFT_256BYTES) |
Align by 256-byte memory alignment. More... | |
#define | MMALIB_L2DATA_ALIGN_SHIFT MMALIB_ALIGN_SHIFT_64BYTES |
Set the default L2 data alignment. More... | |
#define | MMALIB_L2DATA_ALIGNMENT (((uint32_t)1) << ((uint32_t)MMALIB_L2DATA_ALIGN_SHIFT)) |
Macro that specifies the alignment of data buffers in L2 memory for optimal performance. More... | |
#define | MMALIB_MMA_SIZE_8_BIT __MMA_A_COLS(sizeof(int8_t)) |
MMA size as a function of precision. More... | |
#define | MMALIB_MMA_SIZE_16_BIT __MMA_A_COLS(sizeof(int16_t)) |
#define | MMALIB_MMA_SIZE_32_BIT __MMA_A_COLS(sizeof(int32_t)) |
#define | MMALIB_MMA_BIAS_SIZE_32_BIT __MMA_A_COLS(sizeof(int32_t)) |
#define | MMALIB_MMA_BIAS_SIZE_64_BIT ((MMALIB_MMA_BIAS_SIZE_32_BIT) >> 1) |
Typedefs | |
typedef double | MMALIB_D64 |
Double precision floating point. More... | |
typedef float | MMALIB_F32 |
Single precision floating point. More... | |
typedef MMALIB_STATUS_NAME | MMALIB_STATUS |
Return value for MMALIB functions. More... | |
typedef void * | MMALIB_kernelHandle |
Handle type for MMALIB operations. More... | |
typedef MMALIB_tensor_format_e | MMALIB_tensor_format |
typedef MMALIB_LUT_type_e | MMALIB_LUT_type |
#define MMALIB_DEBUGPRINT 0 |
Enable debug printf statements.
Definition at line 50 of file MMALIB_types.h.
#define MMALIB_const const |
Definition at line 56 of file MMALIB_types.h.
#define __PRAGMA | ( | x | ) | _Pragma(#x) |
Definition at line 59 of file MMALIB_types.h.
#define __INLINE_FUNC | ( | x | ) | __PRAGMA(FUNC_ALWAYS_INLINE(x)) |
Definition at line 63 of file MMALIB_types.h.
#define MMALIB_PRINTF | ( | fmt, | |
... | |||
) |
Definition at line 71 of file MMALIB_types.h.
#define MMALIB_DEBUGPRINTFN | ( | N, | |
fmt, | |||
... | |||
) |
Definition at line 87 of file MMALIB_types.h.
#define MMALIB_MESG | ( | fmt, | |
... | |||
) |
Definition at line 96 of file MMALIB_types.h.
#define MMALIB_SOFT_MMA_RESET 0 |
Definition at line 117 of file MMALIB_types.h.
#define MMALIB_STATIC_INLINE static inline |
Definition at line 120 of file MMALIB_types.h.