Error Codes of AOE APIs

The AOE API error codes are defined in the header file CANN software installation directory/cann/include/aoe/external/aoe_errcodes.h.

Table 1 Error codes of AOE APIs

Name

Value

Description

AOE_FAILURE

-1

General AOE error.

AOE_SUCCESS

0

Success.

AOE_ERROR_MEMORY_ALLOC

1

Memory allocation failure.

AOE_ERROR_INVALID_PARAM

2

Invalid parameter.

AOE_ERROR_UNINITIALIZED

3

API not initialized.

AOE_ERROR_REPEAT_INITIALIZE

4

API initialized repeatedly.

AOE_ERROR_INVALID_SESSION

5

Invalid session ID.

AOE_ERROR_BUSY

6

Blocked multi-thread call.

AOE_ERROR_INVALID_GRAPH

7

Invalid tuning graph.

AOE_ERROR_NON_OPTIMIZE_GRAPH

8

No tuning graph.

AOE_ERROR_DYNAMIC_GRAPH

9

Dynamic graphs not supported by the tuning service.

AOE_ERROR_DYNAMIC_SHAPE_RANGE

10

Dynamic shape (operator tuning).

AOE_ERROR_INVALID_OPTION_ATTR

11

Option attribute error.

AOE_ERROR_TUNING_ERROR

100

Other tuning errors.