@@ -674,7 +674,8 @@ Status ModelBuilder::SaveDataToModel(ge::Model &model, ge::GeModel &ge_model) { | |||||
GE_IF_BOOL_EXEC(cust_aicpu_kernel == nullptr, continue); | GE_IF_BOOL_EXEC(cust_aicpu_kernel == nullptr, continue); | ||||
if (aicpu_name_set.count(cust_aicpu_kernel->GetName()) > 0) { | if (aicpu_name_set.count(cust_aicpu_kernel->GetName()) > 0) { | ||||
REPORT_INNER_ERROR("E19999", "aicpu_kernel name %s can't be the same, judge for op:%s(%s), when %s", | REPORT_INNER_ERROR("E19999", "aicpu_kernel name %s can't be the same, judge for op:%s(%s), when %s", | ||||
cust_aicpu_kernel->GetName().c_str(), n->GetName().c_str(), n->GetType().c_str(), __FUNCTION__); | |||||
cust_aicpu_kernel->GetName().c_str(), n->GetName().c_str(), n->GetType().c_str(), | |||||
__FUNCTION__); | |||||
GELOGE(FAILED, "aicpu_kernel name %s can't be the same", cust_aicpu_kernel->GetName().c_str()); | GELOGE(FAILED, "aicpu_kernel name %s can't be the same", cust_aicpu_kernel->GetName().c_str()); | ||||
return FAILED; | return FAILED; | ||||
} | } | ||||
@@ -143,7 +143,7 @@ Status WhileOpLabelMaker::Run(uint32_t &label_index) { | |||||
if (GraphUtils::AddEdge(in_anchor->GetPeerOutAnchor(), switch_node->GetInDataAnchor(kCondOutputIndex)) != SUCCESS) { | if (GraphUtils::AddEdge(in_anchor->GetPeerOutAnchor(), switch_node->GetInDataAnchor(kCondOutputIndex)) != SUCCESS) { | ||||
REPORT_CALL_ERROR("E19999", "Add ctrl edge from %s to %s in graph:%s fail when %s", | REPORT_CALL_ERROR("E19999", "Add ctrl edge from %s to %s in graph:%s fail when %s", | ||||
in_anchor->GetPeerOutAnchor()->GetOwnerNode()->GetName().c_str(), | in_anchor->GetPeerOutAnchor()->GetOwnerNode()->GetName().c_str(), | ||||
switch_node->GetName().c_str(), cond_graph ->GetName().c_str(), __FUNCTION__); | |||||
switch_node->GetName().c_str(), cond_graph->GetName().c_str(), __FUNCTION__); | |||||
GELOGE(FAILED, "Node: %s Add pred data input failed.", switch_node->GetName().c_str()); | GELOGE(FAILED, "Node: %s Add pred data input failed.", switch_node->GetName().c_str()); | ||||
return FAILED; | return FAILED; | ||||
} | } | ||||
@@ -1482,7 +1482,8 @@ Status DavinciModel::InitLabelSet(const OpDescPtr &op_desc) { | |||||
rtLabel_t rt_label = nullptr; | rtLabel_t rt_label = nullptr; | ||||
rtError_t rt_error = rtLabelCreateExV2(&rt_label, rt_model_handle_, stream); | rtError_t rt_error = rtLabelCreateExV2(&rt_label, rt_model_handle_, stream); | ||||
if (rt_error != RT_ERROR_NONE || rt_label == nullptr) { | if (rt_error != RT_ERROR_NONE || rt_label == nullptr) { | ||||
REPORT_CALL_ERROR("E19999", "Call rtLabelCreateExV2 failed, ret: 0x%X when DavinciModel %s", rt_error, __FUNCTION__); | |||||
REPORT_CALL_ERROR("E19999", "Call rtLabelCreateExV2 failed, ret: 0x%X when DavinciModel %s", | |||||
rt_error, __FUNCTION__); | |||||
GELOGE(INTERNAL_ERROR, "InitLabelSet: %s create label failed, error=0x%x.", op_desc->GetName().c_str(), rt_error); | GELOGE(INTERNAL_ERROR, "InitLabelSet: %s create label failed, error=0x%x.", op_desc->GetName().c_str(), rt_error); | ||||
return INTERNAL_ERROR; | return INTERNAL_ERROR; | ||||
} | } | ||||
@@ -159,7 +159,8 @@ Status ModelManager::KernelLaunchEx(aicpu::FWKAdapter::FWKOperateType op_type, u | |||||
} | } | ||||
rt_ret = rtStreamSynchronize(stream); | rt_ret = rtStreamSynchronize(stream); | ||||
if (rt_ret != RT_ERROR_NONE) { | if (rt_ret != RT_ERROR_NONE) { | ||||
REPORT_CALL_ERROR("E19999", "Call rtStreamSynchronize failed, ret: 0x%X when ModelManager %s", rt_ret, __FUNCTION__); | |||||
REPORT_CALL_ERROR("E19999", "Call rtStreamSynchronize failed, ret: 0x%X when ModelManager %s", | |||||
rt_ret, __FUNCTION__); | |||||
GELOGE(RT_FAILED, "rtStreamSynchronize failed. ret: 0x%X", rt_ret); | GELOGE(RT_FAILED, "rtStreamSynchronize failed. ret: 0x%X", rt_ret); | ||||
GE_IF_BOOL_EXEC(aicpu_kernel_addr != nullptr, GE_CHK_RT(rtFree(aicpu_kernel_addr))); | GE_IF_BOOL_EXEC(aicpu_kernel_addr != nullptr, GE_CHK_RT(rtFree(aicpu_kernel_addr))); | ||||
GE_CHK_RT(rtFree(devicebase)); | GE_CHK_RT(rtFree(devicebase)); | ||||
@@ -1325,7 +1326,8 @@ Status ModelManager::LoadCustAicpuSo(const OpDescPtr &op_desc, const string &so_ | |||||
rtContext_t rt_cur_ctx = nullptr; | rtContext_t rt_cur_ctx = nullptr; | ||||
auto rt_error = rtCtxGetCurrent(&rt_cur_ctx); | auto rt_error = rtCtxGetCurrent(&rt_cur_ctx); | ||||
if (rt_error != RT_ERROR_NONE) { | if (rt_error != RT_ERROR_NONE) { | ||||
REPORT_CALL_ERROR("E19999", "Call rtCtxGetCurrent failed, ret = 0x%X, when ModelManager %s", rt_error, __FUNCTION__); | |||||
REPORT_CALL_ERROR("E19999", "Call rtCtxGetCurrent failed, ret = 0x%X, when ModelManager %s", | |||||
rt_error, __FUNCTION__); | |||||
GELOGE(RT_FAILED, "get current context failed, runtime result is %d", static_cast<int>(rt_error)); | GELOGE(RT_FAILED, "get current context failed, runtime result is %d", static_cast<int>(rt_error)); | ||||
return RT_FAILED; | return RT_FAILED; | ||||
} | } | ||||
@@ -1361,7 +1363,8 @@ Status ModelManager::LaunchKernelCustAicpuSo(const string &kernel_name) { | |||||
rtContext_t rt_cur_ctx = nullptr; | rtContext_t rt_cur_ctx = nullptr; | ||||
auto rt_error = rtCtxGetCurrent(&rt_cur_ctx); | auto rt_error = rtCtxGetCurrent(&rt_cur_ctx); | ||||
if (rt_error != RT_ERROR_NONE) { | if (rt_error != RT_ERROR_NONE) { | ||||
REPORT_CALL_ERROR("E19999", "Call rtCtxGetCurrent failed, ret = 0x%X, when ModelManager %s", rt_error, __FUNCTION__); | |||||
REPORT_CALL_ERROR("E19999", "Call rtCtxGetCurrent failed, ret = 0x%X, when ModelManager %s", | |||||
rt_error, __FUNCTION__); | |||||
GELOGE(RT_FAILED, "get current context failed, runtime result is %d", static_cast<int>(rt_error)); | GELOGE(RT_FAILED, "get current context failed, runtime result is %d", static_cast<int>(rt_error)); | ||||
return RT_FAILED; | return RT_FAILED; | ||||
} | } | ||||
@@ -801,8 +801,8 @@ Status GraphManager::SetRtContext(rtContext_t rt_context, rtCtxMode_t mode, uint | |||||
} | } | ||||
rt_ret = rtCtxSetCurrent(rt_context); | rt_ret = rtCtxSetCurrent(rt_context); | ||||
if (rt_ret != RT_ERROR_NONE) { | if (rt_ret != RT_ERROR_NONE) { | ||||
REPORT_CALL_ERROR("E19999", "Call rtCtxSetCurrent failed, session_id:%lu, graph_id:%u, mode:%d, when GraphManager %s", | |||||
session_id, graph_id, mode, __FUNCTION__); | |||||
REPORT_CALL_ERROR("E19999", "Call rtCtxSetCurrent failed, session_id:%lu, graph_id:%u, mode:%d, " | |||||
"when GraphManager %s", session_id, graph_id, mode, __FUNCTION__); | |||||
GELOGE(FAILED, "Call rt api failed, ret: 0x%X", rt_ret); | GELOGE(FAILED, "Call rt api failed, ret: 0x%X", rt_ret); | ||||
return FAILED; | return FAILED; | ||||
} | } | ||||