18#ifndef _ODLA_COMMON_H_
19#define _ODLA_COMMON_H_
29#if (defined(_WIN32) && defined(_MSC_VER))
45typedef unsigned __int8
47typedef unsigned __int16
49typedef unsigned __int32
51typedef unsigned __int64
80typedef __UINT16_TYPE__
82typedef __UINT32_TYPE__
84typedef __UINT64_TYPE__
96#define NULL ((void*)0)
149 ODLA_UNSUPPORTED_DATATYPE,
150 ODLA_UNSUPPORTED_DEVICE_TYPE,
169#define ODLA_API_EXPORT __declspec(dllexport)
170#define ODLA_API_CALL __stdcall
172#define ODLA_API_EXPORT
__UINT64_TYPE__ odla_quint64
__UINT16_TYPE__ odla_uint16
__INT32_TYPE__ odla_int32
__INT32_TYPE__ odla_qint32
__UINT16_TYPE__ odla_quint16
odla_status
Return status.
@ ODLA_INTERNAL_LOGIC_ERR
internal error
@ ODLA_TIMEOUT
process timeout
@ ODLA_MEM_ERROR
allocate/deallocate memory error, out of memory error
@ ODLA_PARTITION_RESET
manual recoverable error, include partition reset and full reset type
@ ODLA_INVALID_PARAM
illegal input argument, such as nullptr
@ ODLA_DL_ERROR
dlopen a shared library error
@ ODLA_RECOVERABLE_ERR
auto recoverable error
@ ODLA_UNRECOVERABLE_ERR
unrecoverable error
@ ODLA_UNSUPPORTED_OP
odla op is not implemented yet
__UINT8_TYPE__ odla_quint8
__INT64_TYPE__ odla_int64
__UINT16_TYPE__ odla_float16
__UINT32_TYPE__ odla_uint32
__INT16_TYPE__ odla_int16
__UINT8_TYPE__ odla_uint8
__INT16_TYPE__ odla_qint16
__UINT16_TYPE__ odla_bfloat16
__UINT32_TYPE__ odla_quint32
__SIZE_TYPE__ odla_size_t
size_t
__INT64_TYPE__ odla_qint64
__UINT64_TYPE__ odla_uint64