parent
dd5ac69a1f
commit
dabd399a6a
@ -0,0 +1,91 @@
|
||||
/**
|
||||
* Copyright 2019-2020 Huawei Technologies Co., Ltd
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __INC_EXTERNEL_RT_ERROR_CODES_H__
|
||||
#define __INC_EXTERNEL_RT_ERROR_CODES_H__
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
static const int32_t ACL_RT_SUCCESS = 0; // success
|
||||
|
||||
static const int32_t ACL_ERROR_RT_PARAM_INVALID = 107000; // param invalid
|
||||
static const int32_t ACL_ERROR_RT_INVALID_DEVICEID = 107001; // invalid device id
|
||||
static const int32_t ACL_ERROR_RT_CONTEXT_NULL = 107002; // current context null
|
||||
static const int32_t ACL_ERROR_RT_STREAM_CONTEXT = 107003; // stream not in current context
|
||||
static const int32_t ACL_ERROR_RT_MODEL_CONTEXT = 107004; // model not in current context
|
||||
static const int32_t ACL_ERROR_RT_STREAM_MODEL = 107005; // stream not in model
|
||||
static const int32_t ACL_ERROR_RT_EVENT_TIMESTAMP_INVALID = 107006; // event timestamp invalid
|
||||
static const int32_t ACL_ERROR_RT_EVENT_TIMESTAMP_REVERSAL = 107007; // event timestamp reversal
|
||||
static const int32_t ACL_ERROR_RT_ADDR_UNALIGNED = 107008; // memory address unaligned
|
||||
static const int32_t ACL_ERROR_RT_FILE_OPEN = 107009; // open file failed
|
||||
static const int32_t ACL_ERROR_RT_FILE_WRITE = 107010; // write file failed
|
||||
static const int32_t ACL_ERROR_RT_STREAM_SUBSCRIBE = 107011; // error subscribe stream
|
||||
static const int32_t ACL_ERROR_RT_THREAD_SUBSCRIBE = 107012; // error subscribe thread
|
||||
static const int32_t ACL_ERROR_RT_GROUP_NOT_SET = 107013; // group not set
|
||||
static const int32_t ACL_ERROR_RT_GROUP_NOT_CREATE = 107014; // group not create
|
||||
static const int32_t ACL_ERROR_RT_STREAM_NO_CB_REG = 107015; // callback not register to stream
|
||||
static const int32_t ACL_ERROR_RT_INVALID_MEMORY_TYPE = 107016; // invalid memory type
|
||||
|
||||
static const int32_t ACL_ERROR_RT_FEATURE_NOT_SUPPROT = 207000; // feature not support
|
||||
static const int32_t ACL_ERROR_RT_MEMORY_ALLOCATION = 207001; // memory allocation error
|
||||
static const int32_t ACL_ERROR_RT_MEMORY_FREE = 207002; // memory free error
|
||||
|
||||
static const int32_t ACL_ERROR_RT_INTERNEL_ERROR = 507000; // runtime internel error
|
||||
static const int32_t ACL_ERROR_RT_TS_ERROR = 507001; // ts internel error
|
||||
static const int32_t ACL_ERROR_RT_STREAM_TASK_FULL = 507002; // task full in stream
|
||||
static const int32_t ACL_ERROR_RT_STREAM_TASK_EMPTY = 507003; // task empty in stream
|
||||
static const int32_t ACL_ERROR_RT_STREAM_NOT_COMPLETE = 507004; // stream not complete
|
||||
static const int32_t ACL_ERROR_RT_END_OF_SEQUENCE = 507005; // end of sequence
|
||||
static const int32_t ACL_ERROR_RT_EVENT_NOT_COMPLETE = 507006; // event not complete
|
||||
static const int32_t ACL_ERROR_RT_CONTEXT_RELEASE_ERROR = 507007; // context release error
|
||||
static const int32_t ACL_ERROR_RT_SOC_VERSION = 507008; // soc version error
|
||||
static const int32_t ACL_ERROR_RT_TASK_TYPE_NOT_SUPPORT = 507009; // task type not support
|
||||
static const int32_t ACL_ERROR_RT_LOST_HEARTBEAT = 507010; // ts lost heartbeat
|
||||
static const int32_t ACL_ERROR_RT_MODEL_EXECUTE = 507011; // model execute failed
|
||||
static const int32_t ACL_ERROR_RT_REPORT_TIMEOUT = 507012; // report timeout
|
||||
static const int32_t ACL_ERROR_RT_SYS_DMA = 507013; // sys dma error
|
||||
static const int32_t ACL_ERROR_RT_AICORE_TIMEOUT = 507014; // aicore timeout
|
||||
static const int32_t ACL_ERROR_RT_AICORE_EXCEPTION = 507015; // aicore exception
|
||||
static const int32_t ACL_ERROR_RT_AICORE_TRAP_EXCEPTION = 507016; // aicore trap exception
|
||||
static const int32_t ACL_ERROR_RT_AICPU_TIMEOUT = 507017; // aicpu timeout
|
||||
static const int32_t ACL_ERROR_RT_AICPU_EXCEPTION = 507018; // aicpu exception
|
||||
static const int32_t ACL_ERROR_RT_AICPU_DATADUMP_RSP_ERR = 507019; // aicpu datadump response error
|
||||
static const int32_t ACL_ERROR_RT_AICPU_MODEL_RSP_ERR = 507020; // aicpu model operate response error
|
||||
static const int32_t ACL_ERROR_RT_PROFILING_ERROR = 507021; // profiling error
|
||||
static const int32_t ACL_ERROR_RT_IPC_ERROR = 507022; // ipc error
|
||||
static const int32_t ACL_ERROR_RT_MODEL_ABORT_NORMAL = 507023; // model abort normal
|
||||
static const int32_t ACL_ERROR_RT_KERNEL_UNREGISTERING = 507024; // kernel unregistering
|
||||
static const int32_t ACL_ERROR_RT_RINGBUFFER_NOT_INIT = 507025; // ringbuffer not init
|
||||
static const int32_t ACL_ERROR_RT_RINGBUFFER_NO_DATA = 507026; // ringbuffer no data
|
||||
static const int32_t ACL_ERROR_RT_KERNEL_LOOKUP = 507027; // kernel lookup error
|
||||
static const int32_t ACL_ERROR_RT_KERNEL_DUPLICATE = 507028; // kernel register duplicate
|
||||
static const int32_t ACL_ERROR_RT_DEBUG_REGISTER_FAIL = 507029; // debug register failed
|
||||
static const int32_t ACL_ERROR_RT_DEBUG_UNREGISTER_FAIL = 507030; // debug unregister failed
|
||||
static const int32_t ACL_ERROR_RT_LABEL_CONTEXT = 507031; // label not in current context
|
||||
static const int32_t ACL_ERROR_RT_PROGRAM_USE_OUT = 507032; // program register num use out
|
||||
static const int32_t ACL_ERROR_RT_DEV_SETUP_ERROR = 507033; // device setup error
|
||||
|
||||
static const int32_t ACL_ERROR_RT_DRV_INTERNEL_ERROR = 507899; // drv internel error
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __INC_EXTERNEL_RT_ERROR_CODES_H__
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue