Browse Source

graph test

Signed-off-by: zhupuxu <zhupuxu@huawei.com>
pull/1853/head
zhupuxu 4 years ago
parent
commit
8c7be55af6
2 changed files with 6 additions and 0 deletions
  1. +5
    -0
      ge/common/profiling/ge_profiling.cc
  2. +1
    -0
      inc/framework/common/profiling/ge_profiling.h

+ 5
- 0
ge/common/profiling/ge_profiling.cc View File

@@ -219,3 +219,8 @@ ge::Status ProfCommandHandle(ProfCommandHandleType type, void *data, uint32_t le
GE_FUNC_VISIBILITY ge::Status ProfSetStepInfo(uint64_t index_id, uint16_t tag_id, rtStream_t stream) {
return ge::SUCCESS;
}

ge::Status ProfGetDeviceFormGraphId(uint32_t graph_id, uint32_t &device_id) {
device_id = 0;
return ge::SUCCESS;
}

+ 1
- 0
inc/framework/common/profiling/ge_profiling.h View File

@@ -45,4 +45,5 @@ GE_FUNC_VISIBILITY ge::Status RegProfReporterCallback(MsprofReporterCallback fun
GE_FUNC_VISIBILITY ge::Status ProfCommandHandle(ProfCommandHandleType type, void *data, uint32_t len);
GE_FUNC_VISIBILITY ge::Status ProfSetStepInfo(uint64_t index_id, uint16_t tag_id, rtStream_t stream);

GE_FUNC_VISIBILITY ge::Status ProfGetDeviceFormGraphId(uint32_t graph_id, uint32_t &device_id);
#endif // INC_FRAMEWORK_COMMON_GE_PROFILING_H_

Loading…
Cancel
Save