aclError
1 | typedef int aclError; |
The rules for defining return codes are as follows:
- Rule 1: Abnormal development environment or incorrect code logic that can be optimized is defined as 1XXXXX.
- Rule 2: Resource (stream, memory, or others) insufficiency and APIs or arguments mismatch with the hardware, which can be resolved by the proper use of resources during programming, are defined as 2XXXXX.
- Rule 3: Abnormal services (full or empty queue, or others) are defined as 3XXXXX.
- Rule 4: Abnormal internal hardware and software errors (internal software errors, device execution failure, or others) that cannot be resolved by the user and need to be reported to technical support are defined as 5XXXXX. After obtaining the logs, click here to contact technical support.
- Rule 5: Unrecognized errors are currently mapped to 500000. After obtaining the logs, click here to contact technical support.
Return Code |
Description |
Possible Cause and Solution |
|---|---|---|
static const int ACL_SUCCESS = 0; |
Execution succeeded. |
- |
static const int ACL_ERROR_NONE = 0; Note: This return code will be deprecated in future releases. Use ACL_SUCCESS instead. |
Execution succeeded. |
- |
static const int ACL_ERROR_INVALID_PARAM = 100000; |
Parameter verification failed. |
Check the passed arguments. |
static const int ACL_ERROR_UNINITIALIZE = 100001; |
Not initialized. |
|
static const int ACL_ERROR_REPEAT_INITIALIZE = 100002; |
Repeated initialization or loading. |
Check that the API is repeatedly called for initialization or model loading. |
static const int ACL_ERROR_INVALID_FILE = 100003; |
Invalid file. |
Check that the file exists and is accessible. |
static const int ACL_ERROR_WRITE_FILE = 100004; |
File write failed. |
Check that the file path exists and the file is writeable. |
static const int ACL_ERROR_INVALID_FILE_SIZE = 100005; |
Invalid file size. |
Check that the file size meets the API requirements. |
static const int ACL_ERROR_PARSE_FILE = 100006; |
File parsing failed. |
Check that the file content is valid. |
static const int ACL_ERROR_FILE_MISSING_ATTR = 100007; |
Missing file parameters. |
Check that the file content is complete. |
static const int ACL_ERROR_FILE_ATTR_INVALID = 100008; |
Invalid file parameters. |
Check that the parameters in the file are correct. |
static const int ACL_ERROR_INVALID_DUMP_CONFIG = 100009; |
Invalid dump configuration. |
Check that the dump configuration is correct. |
static const int ACL_ERROR_INVALID_PROFILING_CONFIG = 100010; |
Invalid profiling configuration. |
Check that the profiling configuration is correct. |
static const int ACL_ERROR_INVALID_MODEL_ID = 100011; |
Invalid model ID. |
Check that the model ID is correct and the model is correctly loaded. |
static const int ACL_ERROR_DESERIALIZE_MODEL = 100012; |
Model deserialization failed. |
The model may not be compatible with the current version. Build the model again. |
static const int ACL_ERROR_PARSE_MODEL = 100013; |
Model parsing failed. |
The model may not be compatible with the current version. Build the model again. |
static const int ACL_ERROR_READ_MODEL_FAILURE = 100014; |
Model reading failed. |
Check that the model file exists and is accessible. |
static const int ACL_ERROR_MODEL_SIZE_INVALID = 100015; |
Invalid model size. |
The model file is invalid. Build the model again. |
static const int ACL_ERROR_MODEL_MISSING_ATTR = 100016; |
Missing model parameter. |
The model may not be compatible with the current version. Build the model again. |
static const int ACL_ERROR_MODEL_INPUT_NOT_MATCH = 100017; |
Model input mismatch. |
Check that the model input is correct. |
static const int ACL_ERROR_MODEL_OUTPUT_NOT_MATCH = 100018; |
Model output mismatch. |
Check that the model output is correct. |
static const int ACL_ERROR_MODEL_NOT_DYNAMIC = 100019; |
Dynamic feature not supported. |
Check whether the current model supports dynamic scenarios. If not, build the model again. |
static const int ACL_ERROR_OP_TYPE_NOT_MATCH = 100020; |
Single-operator type mismatch. |
Check whether the operator type is correct. |
static const int ACL_ERROR_OP_INPUT_NOT_MATCH = 100021; |
Single-operator input mismatch. |
Check that the operator input is correct. |
static const int ACL_ERROR_OP_OUTPUT_NOT_MATCH = 100022; |
Single-operator output mismatch. |
Check that the operator output is correct. |
static const int ACL_ERROR_OP_ATTR_NOT_MATCH = 100023; |
Single-operator attribute mismatch. |
Check that the operator attribute is correct. |
static const int ACL_ERROR_OP_NOT_FOUND = 100024; |
Single-operator not found. |
Check that the operator type is supported. |
static const int ACL_ERROR_OP_LOAD_FAILED = 100025; |
Single-operator loading failed. |
The model may not be compatible with the current version. Build a single-operator model again. |
static const int ACL_ERROR_UNSUPPORTED_DATA_TYPE = 100026; |
Data type not supported. |
Check that the data type exists or is supported. |
static const int ACL_ERROR_FORMAT_NOT_MATCH = 100027; |
Format mismatch. |
Check that the format is correct. |
static const int ACL_ERROR_BIN_SELECTOR_NOT_REGISTERED = 100028; |
Operator selector unregistered for operator compilation in binary mode. |
Check whether aclopRegisterSelectKernelFunc is called to register an operator selector. |
static const int ACL_ERROR_KERNEL_NOT_FOUND = 100029; |
Operator kernel unregistered for operator compilation. |
Check whether aclopCreateKernel is called to register an operator kernel. |
static const int ACL_ERROR_BIN_SELECTOR_ALREADY_REGISTERED = 100030; |
Operator repeatedly registered for operator compilation in binary mode. |
Check whether aclopRegisterSelectKernelFunc is repeatedly called to register an operator selector. |
static const int ACL_ERROR_KERNEL_ALREADY_REGISTERED = 100031; |
Operator kernel repeatedly registered for operator compilation. |
Check whether aclopCreateKernel is repeatedly called to register an operator kernel. |
static const int ACL_ERROR_INVALID_QUEUE_ID = 100032; |
Invalid queue ID. |
Check that the queue ID is correct. |
static const int ACL_ERROR_REPEAT_SUBSCRIBE = 100033; |
Repeated subscription. |
Check whether aclrtSubscribeReport is repeatedly called in the same stream. |
static const int ACL_ERROR_STREAM_NOT_SUBSCRIBE = 100034; Note: This return code will be deprecated in future releases. Use ACL_ERROR_RT_STREAM_NO_CB_REG instead. |
Stream unsubscribed. |
Check whether aclrtSubscribeReport has been called. |
static const int ACL_ERROR_THREAD_NOT_SUBSCRIBE = 100035; Note: This return code will be deprecated in future releases. Use ACL_ERROR_RT_THREAD_SUBSCRIBE instead. |
Thread unsubscribed. |
Check whether aclrtSubscribeReport has been called. |
static const int ACL_ERROR_WAIT_CALLBACK_TIMEOUT = 100036; Note: This return code will be deprecated in future releases. Use ACL_ERROR_RT_REPORT_TIMEOUT instead. |
Callback timeout. |
Check whether aclrtLaunchCallback has been called to deliver callback task. Check whether the timeout period in aclrtProcessReport is proper. Check whether the callback task has been processed. If yes, but aclrtProcessReport is still called, the code logic needs to be optimized. |
static const int ACL_ERROR_REPEAT_FINALIZE = 100037; |
Repeated deinitialization. |
Check whether aclFinalize or aclFinalizeReference is called repeatedly for deinitialization. |
static const int ACL_ERROR_NOT_STATIC_AIPP = 100038; Note: This return code will be deprecated in future releases. Use ACL_ERROR_GE_AIPP_NOT_EXIST instead. |
Static AIPP configuration not found. |
Pass the correct index to the aclmdlGetFirstAippInfo call. |
static const int ACL_ERROR_COMPILING_STUB_MODE = 100039; |
Incorrect dynamic library path configured before application execution. |
Check the configuration of the dynamic library path and ensure that the runtime dynamic library is used. |
static const int ACL_ERROR_GROUP_NOT_SET = 100040; Note: This return code will be deprecated in future releases. Use ACL_ERROR_RT_GROUP_NOT_SET instead. |
Group not set. |
Check whether aclrtSetGroup has been called. |
static const int ACL_ERROR_GROUP_NOT_CREATE = 100041; Note: This return code will be deprecated in future releases. Use ACL_ERROR_RT_GROUP_NOT_CREATE instead. |
Group not created. |
Check whether the specified group ID is within the valid range [0, (Group count – 1)]. The group count is obtained by the aclrtGetGroupCount call. |
static const int ACL_ERROR_PROF_ALREADY_RUN = 100042; |
Duplicate profiling task. |
|
static const int ACL_ERROR_PROF_NOT_RUN = 100043; |
Profiling not initialized by the aclprofInit call. |
Check the API call sequence. |
static const int ACL_ERROR_DUMP_ALREADY_RUN = 100044; |
Duplicate dump task. |
Check whether aclInit has been called before the aclmdlInitDump, aclmdlSetDump, and aclmdlFinalizeDump calls. If yes, adjust the code logic and retain only one Dump configuration. |
static const int ACL_ERROR_DUMP_NOT_RUN = 100045; |
Dump not initialized by the aclmdlInitDump call. |
Check the API call sequence for obtaining dump data. For details, see aclmdlInitDump. |
static const int ACL_ERROR_PROF_REPEAT_SUBSCRIBE = 148046; |
Repeated model subscription. |
Check the API call sequence. |
static const int ACL_ERROR_PROF_API_CONFLICT = 148047; |
Profiling API call conflict. |
Do not mix the two sets of Profiling APIs. Between the aclprofInit and aclprofFinalize calls, calls to aclprofModelSub, aclprofGet*, or aclprofModelUnSubscribe are not allowed. Between the aclprofModelSubscribe and aclprofModelUnSubscribe calls, calls to aclprofInit, aclprofStart, aclprofStop, or aclprofFinalize are not allowed. |
static const int ACL_ERROR_INVALID_MAX_OPQUEUE_NUM_CONFIG = 148048; |
Invalid operator cache aging configuration. |
Check the operator cache aging configuration. For details, see aclInit. |
static const int ACL_ERROR_INVALID_OPP_PATH = 148049; |
Empty or incorrect ASCEND_OPP_PATH environment variable. |
Check whether the ASCEND_OPP_PATH environment variable is set and whether the OPP installation path is included. |
static const int ACL_ERROR_OP_UNSUPPORTED_DYNAMIC = 148050; |
Dynamic shape unsupported. |
|
static const int ACL_ERROR_RELATIVE_RESOURCE_NOT_CLEARED = 148051; |
Related resources not released. |
This error code is returned if the channel is not destroyed but the channel description has not been destroyed. Check whether the channel associated with the channel description has been destroyed. |
static const int ACL_ERROR_UNSUPPORTED_JPEG = 148052; |
The input image format is not supported by JPEGD (such as arithmetic encoding or progressive encoding). |
JPEGD supports only Huffman coding and does not support arithmetic encoding, progressive JPEG format, or JPEG 2000 format. The color space of the input image must be YUV with YUV components in the ratio of 4:4:4, 4:2:2, 4:2:0, 4:0:0, or 4:4:0. |
static const int ACL_ERROR_INVALID_BUNDLE_MODEL_ID = 148053; |
Invalid model ID. |
Check that the model ID is correct and the model is correctly loaded. |
static const int ACL_ERROR_BAD_ALLOC = 200000; |
Memory allocation failed. |
Check the available memory in the hardware environment. |
static const int ACL_ERROR_API_NOT_SUPPORT = 200001; |
API not supported. |
Check that the called API is supported. |
static const int ACL_ERROR_INVALID_DEVICE = 200002; Note: This return code will be deprecated in future releases. Use ACL_ERROR_RT_INVALID_DEVICEID instead. |
Invalid device. |
Check that the device exists. |
static const int ACL_ERROR_MEMORY_ADDRESS_UNALIGNED = 200003; |
Memory address misaligned. |
Check that the memory address meets the API requirements. |
static const int ACL_ERROR_RESOURCE_NOT_MATCH = 200004; |
Resource mismatch. |
Check that resources such as the streams and contexts are correctly passed to the API call. |
static const int ACL_ERROR_INVALID_RESOURCE_HANDLE = 200005; |
Invalid resource handle. |
Check that the passed resources such as streams and contexts are destroyed or occupied. |
static const int ACL_ERROR_FEATURE_UNSUPPORTED = 200006; |
Feature not supported. |
After obtaining the logs, click here to contact technical support. |
static const int ACL_ERROR_PROF_MODULES_UNSUPPORTED = 200007; |
Unsupported Profiling configuration. |
Check that the Profiling configuration is correct (see aclprofCreateConfig for details). |
static const int ACL_ERROR_STORAGE_OVER_LIMIT = 300000; |
Storage capacity reached. |
Check the available memory in the hardware environment. |
static const int ACL_ERROR_INTERNAL_ERROR = 500000; |
Unknown internal error. |
After obtaining the logs, click here to contact technical support. |
static const int ACL_ERROR_FAILURE = 500001; |
Internal error. |
After obtaining the logs, click here to contact technical support. |
static const int ACL_ERROR_GE_FAILURE = 500002; |
Graph Engine (GE) error. |
After obtaining the logs, click here to contact technical support. |
static const int ACL_ERROR_RT_FAILURE = 500003; |
RUNTIME error. |
After obtaining the logs, click here to contact technical support. |
static const int ACL_ERROR_DRV_FAILURE = 500004; |
Driver error. |
After obtaining the logs, click here to contact technical support. |
static const int ACL_ERROR_PROFILING_FAILURE = 500005; |
Profiling error. |
After obtaining the logs, click here to contact technical support. |