Browse Source

!904 overflow callback

From: @nicholas_yhr
Reviewed-by: @liujunzhu,@guoqi1024
Signed-off-by: @guoqi1024
pull/904/MERGE
mindspore-ci-bot Gitee 4 years ago
parent
commit
79e930c7b8
1 changed files with 6 additions and 15 deletions
  1. +6
    -15
      third_party/fwkacllib/inc/runtime/base.h

+ 6
- 15
third_party/fwkacllib/inc/runtime/base.h View File

@@ -81,26 +81,17 @@ typedef enum tagRtLimitType {
} rtLimitType_t;

typedef struct rtExceptionInfo {
uint32_t taskid;
uint32_t streamid;
uint32_t tid;
uint32_t deviceid;
uint32_t taskid;
uint32_t streamid;
uint32_t tid;
uint32_t deviceid;
uint32_t retcode;
} rtExceptionInfo;

typedef struct rtTaskFailInfo {
uint32_t taskid;
uint32_t streamid;
uint32_t tid;
uint32_t deviceid;
uint32_t retcode;
} rtTaskFailInfo;

typedef void (*rtErrorCallback)(rtExceptionType);

typedef void (*rtTaskFailCallback)(rtExceptionInfo *exceptionInfo);

typedef void (*rtTaskFailCallbackByModule)(rtTaskFailInfo *exceptionInfo);

typedef void (*rtDeviceStateCallback)(uint32_t devId, bool isOpen);

/**
@@ -209,7 +200,7 @@ RTS_API rtError_t rtRegDeviceStateCallback(const char *regName, rtDeviceStateCal
* @param [out] NA
* @return RT_ERROR_NONE for ok
*/
RTS_API rtError_t rtRegTaskFailCallbackByModule(const char *moduleName, rtTaskFailCallbackByModule callback);
RTS_API rtError_t rtRegTaskFailCallbackByModule(const char *moduleName, rtTaskFailCallback callback);

/**
* @ingroup dvrt_base


Loading…
Cancel
Save