Browse Source

set step

Signed-off-by: zhupuxu <zhupuxu@huawei.com>
tags/v1.3.0
zhupuxu 4 years ago
parent
commit
0be66d0dca
2 changed files with 5 additions and 0 deletions
  1. +3
    -0
      ge/common/profiling/ge_profiling.cc
  2. +2
    -0
      inc/framework/common/profiling/ge_profiling.h

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

@@ -216,3 +216,6 @@ ge::Status ProfCommandHandle(ProfCommandHandleType type, void *data, uint32_t le
return ge::SUCCESS;
}

GE_FUNC_VISIBILITY ge::Status ProSetStepInfo(uint64_t index_id, uint16_t tag_id, rtStream_t stream) {
return ge::SUCCESS;
}

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

@@ -19,6 +19,7 @@

#include "ge/ge_api_error_codes.h"
#include "toolchain/prof_callback.h"
#include "runtime/base.h"

const int MAX_DEV_NUM = 64;

@@ -42,5 +43,6 @@ GE_FUNC_VISIBILITY ge::Status RegProfCtrlCallback(MsprofCtrlCallback func);
GE_FUNC_VISIBILITY ge::Status RegProfSetDeviceCallback(MsprofSetDeviceCallback func);
GE_FUNC_VISIBILITY ge::Status RegProfReporterCallback(MsprofReporterCallback func);
GE_FUNC_VISIBILITY ge::Status ProfCommandHandle(ProfCommandHandleType type, void *data, uint32_t len);
GE_FUNC_VISIBILITY ge::Status ProSetStepInfo(uint64_t index_id, uint16_t tag_id, rtStream_t stream);

#endif // INC_FRAMEWORK_COMMON_GE_PROFILING_H_

Loading…
Cancel
Save