Browse Source

ge log optimize

tags/v1.3.0
liyihan2@huawei.com 3 years ago
parent
commit
b731d86411
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      ge/common/dump/dump_op.cc
  2. +1
    -1
      ge/common/dump/opdebug_register.cc

+ 2
- 2
ge/common/dump/dump_op.cc View File

@@ -130,7 +130,7 @@ Status DumpOp::DumpInput(aicpu::dump::Task &task) {
}
int64_t input_size = 0;
if (TensorUtils::GetTensorSizeInBytes(input_descs.at(i), input_size) != SUCCESS) {
GELOGE(ACL_ERROR_GE_INTERNAL_ERROR, "[Get][TensorSize]Failed, iutput_size %d", iutput_size);
GELOGE(ACL_ERROR_GE_INTERNAL_ERROR, "[Get][TensorSize]Failed, input_size %d", input_size);
REPORT_CALL_ERROR("E19999", "Get input size %d failed", input_size);
return ACL_ERROR_GE_INTERNAL_ERROR;
}
@@ -205,7 +205,7 @@ Status DumpOp::ExecutorDumpOp(aicpu::dump::OpMappingInfo &op_mapping_info) {
stream_);
if (rt_ret != RT_ERROR_NONE) {
GELOGE(rt_ret, "Call rtCpuKernelLaunch failed, ret:0x%X", rt_ret);
REPORT_CALL_ERROR("E19999", "Call rtCpuKernelLaunch failed, ret: 0x%X", rt_ret)
REPORT_CALL_ERROR("E19999", "Call rtCpuKernelLaunch failed, ret: 0x%X", rt_ret);
return RT_ERROR_TO_GE_STATUS(rt_ret);
}
GELOGI("Kernel launch dump op success");


+ 1
- 1
ge/common/dump/opdebug_register.cc View File

@@ -79,7 +79,7 @@ Status OpdebugRegister::RegisterDebugForStream(rtStream_t stream, uint32_t op_de
GELOGE(ret, "[Malloc][MemForOpdebug]Failed in stream overflow, ret:0x%X", ret);
REPORT_CALL_ERROR("E19999", "Malloc memory for opdebug failed in model overflow, "
"ret:0x%X", ret);
return ret
return ret;
}

uint32_t debug_stream_id = 0;


Loading…
Cancel
Save