FFTLIB User Guide
FFTLIB_types.h File Reference

Introduction

File to hold common structure, enums, macros and functions for FFTLIB.

Version
0.1 - Jan 2018 : Initial Version

Definition in file FFTLIB_types.h.

Go to the source code of this file.

Macros

#define FFTLIB_DEBUGPRINT   0
 Enable debug printf statements. More...
 
#define FFTLIB_const   const
 
#define __PRAGMA(x)   _Pragma(#x)
 
#define __INLINE_FUNC(x)   __PRAGMA(FUNC_ALWAYS_INLINE(x))
 
#define FFTLIB_DEBUGPRINTFN(N, fmt, ...)
 
#define FFTLIB_PRINTF(fmt, ...)
 
#define FFTLIB_MESG(fmt, ...)
 
#define FFTLIB_SOFT_MMA_RESET   0
 
#define FFTLIB_STATIC_INLINE   static inline
 
#define FFTLIB_PARAM_SIZE   128
 Parameter structure size in bytes. More...
 
#define FFTLIB_MMA_ACCUMULATOR_BYTE_WIDTH_8_BIT   4
 MMA accumulator width in bytes for 8 bit output data width. More...
 
#define FFTLIB_MMA_ACCUMULATOR_BYTE_WIDTH_16_BIT   8
 MMA accumulator width in bytes for 16 bit output data width. More...
 
#define FFTLIB_MMA_ACCUMULATOR_BYTE_WIDTH_32_BIT   16
 MMA accumulator width in bytes for 32 bit output data width. More...
 
#define FFTLIB_ALIGN_SHIFT_64BYTES   6
 Number of bits to shift for 64-byte memory alignment. More...
 
#define FFTLIB_ALIGN_SHIFT_128BYTES   7
 Number of bits to shift for 128-byte memory alignment. More...
 
#define FFTLIB_ALIGN_SHIFT_256BYTES   8
 Number of bits to shift for 256-byte memory alignment. More...
 
#define FFTLIB_ALIGN_64BYTES   (1 << FFTLIB_ALIGN_SHIFT_64BYTES)
 Align by 64-byte memory alignment. More...
 
#define FFTLIB_ALIGN_128BYTES   (1 << FFTLIB_ALIGN_SHIFT_128BYTES)
 Align by 128-byte memory alignment. More...
 
#define FFTLIB_ALIGN_256BYTES   (1 << FFTLIB_ALIGN_SHIFT_256BYTES)
 Align by 256-byte memory alignment. More...
 
#define FFTLIB_L2DATA_ALIGN_SHIFT   FFTLIB_ALIGN_SHIFT_64BYTES
 Set the default L2 data alignment. More...
 
#define FFTLIB_L2DATA_ALIGNMENT   (((uint32_t)1) << ((uint32_t)FFTLIB_L2DATA_ALIGN_SHIFT))
 Macro that specifies the alignment of data buffers in L2 memory for optimal performance. More...
 

Typedefs

typedef double FFTLIB_D64
 Double precision floating point. More...
 
typedef float FFTLIB_F32
 Single precision floating point. More...
 
typedef FFTLIB_STATUS_NAME FFTLIB_STATUS
 Return value for FFTLIB functions. More...
 
typedef void * FFTLIB_kernelHandle
 Handle type for FFTLIB operations. More...
 

Enumerations

enum  FFTLIB_STATUS_NAME {
  FFTLIB_SUCCESS = 0, FFTLIB_ERR_FAILURE = 1, FFTLIB_ERR_INVALID_VALUE = 2, FFTLIB_ERR_INVALID_TYPE = 3,
  FFTLIB_ERR_INVALID_DIMENSION = 4, FFTLIB_ERR_NULL_POINTER = 5, FFTLIB_ERR_NOT_IMPLEMENTED = 6, FFTLIB_ERR_NOT_EQUAL_WIDTH_STRIDE = 7,
  FFTLIB_ERR_NOT_ALIGNED_PTRS_STRIDES = 8, FFTLIB_ERR_NOT_ALIGNED_WIDTHS = 9, FFTLIB_ERR_BUFFER_TOO_SMALL = 10, FFTLIB_ERR_INVALID_ACTIVATION = 11,
  FFTLIB_ERR_INVALID_SHIFT = 12, FFTLIB_ERROR_MAX = 13, FFTLIB_ERR_MATRIX_MATRIX_MULTIPLY_UNSUPPORTED_INPUT_TYPE = 10000, FFTLIB_ERR_MATRIX_MATRIX_MULTIPLY_UNSUPPORTED_OUTPUT_TYPE = 10001,
  FFTLIB_ERR_MATRIX_MATRIX_MULTIPLY_UNSUPPORTED_TYPE_COMBINATION = 10002, FFTLIB_ERR_MATRIX_MATRIX_MULTIPLY_ACCUMULATE_UNSUPPORTED_INPUT_TYPE = 11000, FFTLIB_ERR_MATRIX_MATRIX_MULTIPLY_ACCUMULATE_UNSUPPORTED_OUTPUT_TYPE = 11001, FFTLIB_ERR_MATRIX_MATRIX_MULTIPLY_ACCUMULATE_UNSUPPORTED_TYPE_COMBINATION = 11002,
  FFTLIB_ERR_MATRIX_TRANSPOSE_UNSUPPORTED_INPUT_TYPE = 12000, FFTLIB_ERR_MATRIX_TRANSPOSE_UNSUPPORTED_OUTPUT_TYPE = 12001, FFTLIB_ERR_MATRIX_TRANSPOSE_UNSUPPORTED_TYPE_COMBINATION = 12002, FFTLIB_ERR_POINTWISE_MATRIX_MATRIX_MULTIPLY_UNSUPPORTED_INPUT_TYPE = 13000,
  FFTLIB_ERR_POINTWISE_MATRIX_MATRIX_MULTIPLY_UNSUPPORTED_OUTPUT_TYPE = 13001, FFTLIB_ERR_POINTWISE_MATRIX_MATRIX_MULTIPLY_UNSUPPORTED_TYPE_COMBINATION = 13002
}
 The enumeration of all status codes. More...
 
enum  FFTLIB_FUNCTION_STYLE { FFTLIB_FUNCTION_NATC = 0, FFTLIB_FUNCTION_OPTIMIZED, FFTLIB_FUNCTION_MAX = 128 }
 Enumeration for the style of function implementation. More...
 

Macro Definition Documentation

◆ FFTLIB_DEBUGPRINT

#define FFTLIB_DEBUGPRINT   0

Enable debug printf statements.

Definition at line 50 of file FFTLIB_types.h.

◆ FFTLIB_const

#define FFTLIB_const   const

Definition at line 56 of file FFTLIB_types.h.

◆ __PRAGMA

#define __PRAGMA (   x)    _Pragma(#x)

Definition at line 59 of file FFTLIB_types.h.

◆ __INLINE_FUNC

#define __INLINE_FUNC (   x)    __PRAGMA(FUNC_ALWAYS_INLINE(x))

Definition at line 63 of file FFTLIB_types.h.

◆ FFTLIB_DEBUGPRINTFN

#define FFTLIB_DEBUGPRINTFN (   N,
  fmt,
  ... 
)

Definition at line 106 of file FFTLIB_types.h.

◆ FFTLIB_PRINTF

#define FFTLIB_PRINTF (   fmt,
  ... 
)

Definition at line 107 of file FFTLIB_types.h.

◆ FFTLIB_MESG

#define FFTLIB_MESG (   fmt,
  ... 
)

Definition at line 117 of file FFTLIB_types.h.

◆ FFTLIB_SOFT_MMA_RESET

#define FFTLIB_SOFT_MMA_RESET   0

Definition at line 138 of file FFTLIB_types.h.

◆ FFTLIB_STATIC_INLINE

#define FFTLIB_STATIC_INLINE   static inline

Definition at line 141 of file FFTLIB_types.h.