You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

rt_error_codes.h 6.5 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. /**
  2. * @file rt_error_codes.h
  3. *
  4. * Copyright (C) Huawei Technologies Co., Ltd. 2019-2020. All Rights Reserved.
  5. *
  6. * This program is distributed in the hope that it will be useful,
  7. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. */
  10. #ifndef __INC_EXTERNEL_RT_ERROR_CODES_H__
  11. #define __INC_EXTERNEL_RT_ERROR_CODES_H__
  12. #include <stddef.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. static const int32_t ACL_RT_SUCCESS = 0; // success
  17. static const int32_t ACL_ERROR_RT_PARAM_INVALID = 107000; // param invalid
  18. static const int32_t ACL_ERROR_RT_INVALID_DEVICEID = 107001; // invalid device id
  19. static const int32_t ACL_ERROR_RT_CONTEXT_NULL = 107002; // current context null
  20. static const int32_t ACL_ERROR_RT_STREAM_CONTEXT = 107003; // stream not in current context
  21. static const int32_t ACL_ERROR_RT_MODEL_CONTEXT = 107004; // model not in current context
  22. static const int32_t ACL_ERROR_RT_STREAM_MODEL = 107005; // stream not in model
  23. static const int32_t ACL_ERROR_RT_EVENT_TIMESTAMP_INVALID = 107006; // event timestamp invalid
  24. static const int32_t ACL_ERROR_RT_EVENT_TIMESTAMP_REVERSAL = 107007; // event timestamp reversal
  25. static const int32_t ACL_ERROR_RT_ADDR_UNALIGNED = 107008; // memory address unaligned
  26. static const int32_t ACL_ERROR_RT_FILE_OPEN = 107009; // open file failed
  27. static const int32_t ACL_ERROR_RT_FILE_WRITE = 107010; // write file failed
  28. static const int32_t ACL_ERROR_RT_STREAM_SUBSCRIBE = 107011; // error subscribe stream
  29. static const int32_t ACL_ERROR_RT_THREAD_SUBSCRIBE = 107012; // error subscribe thread
  30. static const int32_t ACL_ERROR_RT_GROUP_NOT_SET = 107013; // group not set
  31. static const int32_t ACL_ERROR_RT_GROUP_NOT_CREATE = 107014; // group not create
  32. static const int32_t ACL_ERROR_RT_STREAM_NO_CB_REG = 107015; // callback not register to stream
  33. static const int32_t ACL_ERROR_RT_INVALID_MEMORY_TYPE = 107016; // invalid memory type
  34. static const int32_t ACL_ERROR_RT_INVALID_HANDLE = 107017; // invalid handle
  35. static const int32_t ACL_ERROR_RT_INVALID_MALLOC_TYPE = 107018; // invalid malloc type
  36. static const int32_t ACL_ERROR_RT_FEATURE_NOT_SUPPORT = 207000; // feature not support
  37. static const int32_t ACL_ERROR_RT_MEMORY_ALLOCATION = 207001; // memory allocation error
  38. static const int32_t ACL_ERROR_RT_MEMORY_FREE = 207002; // memory free error
  39. static const int32_t ACL_ERROR_RT_AICORE_OVER_FLOW = 207003; // aicore over flow
  40. static const int32_t ACL_ERROR_RT_NO_DEVICE = 207004; // no device
  41. static const int32_t ACL_ERROR_RT_RESOURCE_ALLOC_FAIL = 207005; // resource alloc fail
  42. static const int32_t ACL_ERROR_RT_NO_PERMISSION = 207006; // no permission
  43. static const int32_t ACL_ERROR_RT_NO_EVENT_RESOURCE = 207007; // no event resource
  44. static const int32_t ACL_ERROR_RT_NO_STREAM_RESOURCE = 207008; // no stream resource
  45. static const int32_t ACL_ERROR_RT_NO_NOTIFY_RESOURCE = 207009; // no notify resource
  46. static const int32_t ACL_ERROR_RT_NO_MODEL_RESOURCE = 207010; // no model resource
  47. static const int32_t ACL_ERROR_RT_INTERNAL_ERROR = 507000; // runtime internal error
  48. static const int32_t ACL_ERROR_RT_TS_ERROR = 507001; // ts internel error
  49. static const int32_t ACL_ERROR_RT_STREAM_TASK_FULL = 507002; // task full in stream
  50. static const int32_t ACL_ERROR_RT_STREAM_TASK_EMPTY = 507003; // task empty in stream
  51. static const int32_t ACL_ERROR_RT_STREAM_NOT_COMPLETE = 507004; // stream not complete
  52. static const int32_t ACL_ERROR_RT_END_OF_SEQUENCE = 507005; // end of sequence
  53. static const int32_t ACL_ERROR_RT_EVENT_NOT_COMPLETE = 507006; // event not complete
  54. static const int32_t ACL_ERROR_RT_CONTEXT_RELEASE_ERROR = 507007; // context release error
  55. static const int32_t ACL_ERROR_RT_SOC_VERSION = 507008; // soc version error
  56. static const int32_t ACL_ERROR_RT_TASK_TYPE_NOT_SUPPORT = 507009; // task type not support
  57. static const int32_t ACL_ERROR_RT_LOST_HEARTBEAT = 507010; // ts lost heartbeat
  58. static const int32_t ACL_ERROR_RT_MODEL_EXECUTE = 507011; // model execute failed
  59. static const int32_t ACL_ERROR_RT_REPORT_TIMEOUT = 507012; // report timeout
  60. static const int32_t ACL_ERROR_RT_SYS_DMA = 507013; // sys dma error
  61. static const int32_t ACL_ERROR_RT_AICORE_TIMEOUT = 507014; // aicore timeout
  62. static const int32_t ACL_ERROR_RT_AICORE_EXCEPTION = 507015; // aicore exception
  63. static const int32_t ACL_ERROR_RT_AICORE_TRAP_EXCEPTION = 507016; // aicore trap exception
  64. static const int32_t ACL_ERROR_RT_AICPU_TIMEOUT = 507017; // aicpu timeout
  65. static const int32_t ACL_ERROR_RT_AICPU_EXCEPTION = 507018; // aicpu exception
  66. static const int32_t ACL_ERROR_RT_AICPU_DATADUMP_RSP_ERR = 507019; // aicpu datadump response error
  67. static const int32_t ACL_ERROR_RT_AICPU_MODEL_RSP_ERR = 507020; // aicpu model operate response error
  68. static const int32_t ACL_ERROR_RT_PROFILING_ERROR = 507021; // profiling error
  69. static const int32_t ACL_ERROR_RT_IPC_ERROR = 507022; // ipc error
  70. static const int32_t ACL_ERROR_RT_MODEL_ABORT_NORMAL = 507023; // model abort normal
  71. static const int32_t ACL_ERROR_RT_KERNEL_UNREGISTERING = 507024; // kernel unregistering
  72. static const int32_t ACL_ERROR_RT_RINGBUFFER_NOT_INIT = 507025; // ringbuffer not init
  73. static const int32_t ACL_ERROR_RT_RINGBUFFER_NO_DATA = 507026; // ringbuffer no data
  74. static const int32_t ACL_ERROR_RT_KERNEL_LOOKUP = 507027; // kernel lookup error
  75. static const int32_t ACL_ERROR_RT_KERNEL_DUPLICATE = 507028; // kernel register duplicate
  76. static const int32_t ACL_ERROR_RT_DEBUG_REGISTER_FAIL = 507029; // debug register failed
  77. static const int32_t ACL_ERROR_RT_DEBUG_UNREGISTER_FAIL = 507030; // debug unregister failed
  78. static const int32_t ACL_ERROR_RT_LABEL_CONTEXT = 507031; // label not in current context
  79. static const int32_t ACL_ERROR_RT_PROGRAM_USE_OUT = 507032; // program register num use out
  80. static const int32_t ACL_ERROR_RT_DEV_SETUP_ERROR = 507033; // device setup error
  81. static const int32_t ACL_ERROR_RT_DRV_INTERNAL_ERROR = 507899; // drv internal error
  82. #ifdef __cplusplus
  83. }
  84. #endif
  85. #endif // __INC_EXTERNEL_RT_ERROR_CODES_H__

图引擎模块(GE)是MindSpore的一个子模块,其代码由C++实现,位于前端模块ME和底层硬件之间,起到承接作用。图引擎模块以ME下发的图作为输入,然后进行一系列的深度图优化操作,最后输出一张可以在底层硬件上高效运行的图。GE针对昇腾AI处理器的硬件结构特点,做了特定的优化工作,以此来充分发挥出昇腾AI处理器的强大算力。在进行模型训练/推理时,GE会被自动调用而用户并不感知。GE主要由GE API和GE Core两部分组成,详细的架构图如下所示