| @@ -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; | ||||
| @@ -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_; | ||||