Browse Source

!6404 fix eagleEye check

Merge pull request !6404 from gukecai/codex
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
c55bd78ce5
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      mindspore/ccsrc/profiler/device/ascend/rt_callback_manager.cc

+ 4
- 0
mindspore/ccsrc/profiler/device/ascend/rt_callback_manager.cc View File

@@ -96,6 +96,10 @@ Status CallbackManager::RegisterCallback(rtCallback_t callback, const void *user
ret = rtEventRecord(event, stream_);
if (ret != RT_ERROR_NONE) {
MS_LOG(ERROR) << "Record event failed";
auto flag = rtEventDestroy(event);
if (flag != RT_ERROR_NONE) {
MS_LOG(ERROR) << "rtEventDestroy failed";
}
return kFail;
}
auto cb = std::pair<rtCallback_t, const void *>(callback, user_data);


Loading…
Cancel
Save