Browse Source

rm op_desc

tags/v1.3.0
wangxiaotian22 3 years ago
parent
commit
42edc50b65
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      ge/graph/build/memory/graph_mem_assigner.cc
  2. +2
    -2
      ge/graph/load/model_manager/task_info/kernel_task_info.cc

+ 1
- 1
ge/graph/build/memory/graph_mem_assigner.cc View File

@@ -337,7 +337,7 @@ uint32_t GetContinuousMemoryType(const OpDescPtr &op_desc) {
}

if (continuous_type != 0) {
GELOGI("[Get][MemType:Continuous]Current node %s, value is %d.", op_desc->GetName().c_str(), continuous_type);
GELOGI("[Get][MemType:Continuous]Current node %s, value is %d", op_desc->GetName().c_str(), continuous_type);
}
return continuous_type;
}


+ 2
- 2
ge/graph/load/model_manager/task_info/kernel_task_info.cc View File

@@ -508,9 +508,9 @@ Status KernelTaskInfo::CopyNoncontinuousArgs(uint16_t offset) {

// copy args to device
rtError_t rt_ret = rtMemcpy(args_, args_size_, args_addr.get(), args_size_, RT_MEMCPY_HOST_TO_DEVICE);
REPORT_CALL_ERROR("E19999", "Call rtMemcpy fail for op:%s(%s), size:%u, ret:0x%X, when KernelTaskInfo %s",
op_desc_->GetName().c_str(), op_desc_->GetType().c_str(), args_size_, rt_ret, __FUNCTION__);
if (rt_ret != RT_ERROR_NONE) {
REPORT_CALL_ERROR("E19999", "Call rtMemcpy, size:%u, ret:0x%X, when KernelTaskInfo %s",
args_size_, rt_ret, __FUNCTION__);
GELOGE(RT_FAILED, "Call rt api(rtMemcpy) failed, ret: 0x%X", rt_ret);
return RT_ERROR_TO_GE_STATUS(rt_ret);
}


Loading…
Cancel
Save