@@ -72,7 +72,7 @@ bool LabelGotoTask::Distribute() { | |||||
return false; | return false; | ||||
} | } | ||||
rt_ret = rtLabelListCpy((void**)label_list.data(), label_list.size(), label_info_, label_info_size); | |||||
rt_ret = rtLabelListCpy(reinterpret_cast<void**>(label_list.data()), label_list.size(), label_info_, label_info_size); | |||||
if (rt_ret != RT_ERROR_NONE) { | if (rt_ret != RT_ERROR_NONE) { | ||||
GELOGE(RT_FAILED, "Call rt api failed, ret: %#x", rt_ret); | GELOGE(RT_FAILED, "Call rt api failed, ret: %#x", rt_ret); | ||||
return false; | return false; | ||||
@@ -1206,7 +1206,7 @@ Status MultiBatchGraphCopyer::CheckCopyResult(const std::vector<NodePtr> &start_ | |||||
auto dims = NodeUtils::GetOutputDesc(*node, kDataOutIndex).GetShape().GetDims(); | auto dims = NodeUtils::GetOutputDesc(*node, kDataOutIndex).GetShape().GetDims(); | ||||
if (!IsAllDimsPositive(dims)) { | if (!IsAllDimsPositive(dims)) { | ||||
REPORT_CALL_ERROR("E19999", "Failed to copy multi batch graph, the node %s still has unknown shape %s", | REPORT_CALL_ERROR("E19999", "Failed to copy multi batch graph, the node %s still has unknown shape %s", | ||||
node->GetName().c_str(), formats::ShapeToString(dims).c_str()); | |||||
node->GetName().c_str(), formats::ShapeToString(dims).c_str()); | |||||
GELOGE(INTERNAL_ERROR, "[Check][Param] Failed to copy multi batch graph, the node %s still has unknown shape %s", | GELOGE(INTERNAL_ERROR, "[Check][Param] Failed to copy multi batch graph, the node %s still has unknown shape %s", | ||||
node->GetName().c_str(), formats::ShapeToString(dims).c_str()); | node->GetName().c_str(), formats::ShapeToString(dims).c_str()); | ||||
return INTERNAL_ERROR; | return INTERNAL_ERROR; | ||||
@@ -33,6 +33,10 @@ | |||||
#include "register/op_tiling.h" | #include "register/op_tiling.h" | ||||
namespace ge { | namespace ge { | ||||
namespace { | |||||
const int kAddressNum = 2; | |||||
} // namespace | |||||
class StreamResource; | class StreamResource; | ||||
struct SingleOpModelParam; | struct SingleOpModelParam; | ||||
class OpTask { | class OpTask { | ||||
@@ -256,7 +260,7 @@ class MemcpyAsyncTask : public OpTask { | |||||
friend class SingleOpModel; | friend class SingleOpModel; | ||||
friend class RtsKernelTaskBuilder; | friend class RtsKernelTaskBuilder; | ||||
uintptr_t addresses_[2]; | |||||
uintptr_t addresses_[kAddressNum]; | |||||
size_t dst_max_; | size_t dst_max_; | ||||
size_t count_; | size_t count_; | ||||
rtMemcpyKind_t kind_; | rtMemcpyKind_t kind_; | ||||