Browse Source

fix eagleEye check

tags/v1.0.0
gukecai 5 years ago
parent
commit
f7d124992f
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