From 8c7be55af6255aa5f3636a23a4ad0e0bbdbf1a82 Mon Sep 17 00:00:00 2001 From: zhupuxu Date: Wed, 23 Jun 2021 17:34:52 +0800 Subject: [PATCH] graph test Signed-off-by: zhupuxu --- ge/common/profiling/ge_profiling.cc | 5 +++++ inc/framework/common/profiling/ge_profiling.h | 1 + 2 files changed, 6 insertions(+) diff --git a/ge/common/profiling/ge_profiling.cc b/ge/common/profiling/ge_profiling.cc index 6ec1143c..709342a7 100644 --- a/ge/common/profiling/ge_profiling.cc +++ b/ge/common/profiling/ge_profiling.cc @@ -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; +} diff --git a/inc/framework/common/profiling/ge_profiling.h b/inc/framework/common/profiling/ge_profiling.h index a8de56a8..b7cfb2df 100644 --- a/inc/framework/common/profiling/ge_profiling.h +++ b/inc/framework/common/profiling/ge_profiling.h @@ -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_