Browse Source

!1303 fix rt_model.h mismatch bug

From: @xuepenginnanjing
Reviewed-by: @ji_chen,@xchu42
Signed-off-by: @ji_chen
tags/v1.3.0
mindspore-ci-bot Gitee 3 years ago
parent
commit
9d6de56d16
1 changed files with 17 additions and 0 deletions
  1. +17
    -0
      third_party/fwkacllib/inc/runtime/rt_model.h

+ 17
- 0
third_party/fwkacllib/inc/runtime/rt_model.h View File

@@ -285,10 +285,27 @@ typedef struct tagTaskInfo {
} u;
} rtTaskInfo_t;

typedef struct tagNodeInfo_t {
uint32_t nodeIdx;
uint32_t reserved[1];
} rtNodeInfo;

typedef struct tagHwtsInfo_t {
uint16_t taskId;
uint16_t sqExeHead;
uint16_t streamExeHead;
uint16_t reserved[2];
} rtHwtsInfo;

typedef struct tagLabelDevInfo_t {
uint16_t modelId;
uint16_t streamId;
uint16_t labelId;
union {
rtNodeInfo nodeInfo;
rtHwtsInfo hwtsInfo;
uint16_t reserved[5];
}u;
}rtLabelDevInfo;

typedef rtError_t (*rtTaskGenCallback)(rtModel_t model, rtTaskInfo_t *taskInfo);


Loading…
Cancel
Save