Home
last modified time | relevance | path

Searched refs:rt_ret (Results 1 – 21 of 21) sorted by relevance

/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/ge_runtime/task/
Dtbe_task.cc44 rtError_t rt_ret = rtFree(args_); in ~TbeTask() local
45 if (rt_ret != RT_ERROR_NONE) { in ~TbeTask()
46 MS_LOG(ERROR) << "Call rt api rtFree failed, ret: " << rt_ret; in ~TbeTask()
60 …rtError_t rt_ret = rtGetFunctionByName(const_cast<char *>(task_info_->stub_func().c_str()), &stub_… in Distribute() local
61 if (rt_ret != RT_ERROR_NONE) { in Distribute()
62 MS_LOG(EXCEPTION) << "Call rt api rtGetFunctionByName failed, ret: " << rt_ret; in Distribute()
76 rt_ret = rtMalloc(&args_, args_size, RT_MEMORY_HBM); in Distribute()
77 if (rt_ret != RT_ERROR_NONE) { in Distribute()
78 … MS_LOG(EXCEPTION) << "Call rt api rtMalloc failed, ret: " << rt_ret << " mem size " << args_size; in Distribute()
81rt_ret = rtMemcpy(args_, args_size, reinterpret_cast<void *>(tensor_device_addrs.data()), args_siz… in Distribute()
[all …]
Daicpu_task.cc64 rtError_t rt_ret = rtMalloc(&args_, args_size, RT_MEMORY_HBM); in Distribute() local
65 if (rt_ret != RT_ERROR_NONE) { in Distribute()
66 MS_LOG(EXCEPTION) << "Call rt api rtMalloc failed, ret: " << rt_ret; in Distribute()
80 rt_ret = rtCpuKernelLaunchWithFlag(reinterpret_cast<const void *>(task_info_->so_name().data()), in Distribute()
83 if (rt_ret != RT_ERROR_NONE) { in Distribute()
84 MS_LOG(EXCEPTION) << "Call rt api rtCpuKernelLaunchWithFlag failed, ret: " << rt_ret; in Distribute()
95 rtError_t rt_ret = rtFree(*ptr); in ReleaseRtMem() local
96 if (rt_ret != RT_ERROR_NONE) { in ReleaseRtMem()
130 …auto rt_ret = rtMemcpy(args_, sizeof(aicpu::AicpuParamHead), reinterpret_cast<void *>(&aicpu_param… in SetAicpuParamHead() local
132 if (rt_ret != RT_ERROR_NONE) { in SetAicpuParamHead()
[all …]
Dlabel_goto_task.cc47 rtError_t rt_ret = rtFree(index_value_); in ~LabelGotoTask() local
48 if (rt_ret != RT_ERROR_NONE) { in ~LabelGotoTask()
49 MS_LOG(ERROR) << "Call rtFree index_value_ failed, ret: " << rt_ret; in ~LabelGotoTask()
61 rtError_t rt_ret = rtMalloc(&index_value_, sizeof(uint64_t), RT_MEMORY_HBM); in Distribute() local
62 if (rt_ret != RT_ERROR_NONE) { in Distribute()
63 MS_LOG(EXCEPTION) << "Call rt api rtMalloc failed, ret: " << rt_ret; in Distribute()
67rt_ret = rtMemcpy(index_value_, sizeof(uint64_t), &index, sizeof(index), RT_MEMCPY_HOST_TO_DEVICE); in Distribute()
68 if (rt_ret != RT_ERROR_NONE) { in Distribute()
69 MS_LOG(EXCEPTION) << "Call rt api rtMemcpy failed, ret: " << rt_ret; in Distribute()
74 rtError_t rt_ret = rtLabelSwitchByIndex(index_value_, 1, label_info, stream_); in Distribute() local
[all …]
Dlabel_manager.cc43 rtError_t rt_ret = rtFree(label_info); in ~LabelGuard() local
44 if (rt_ret != RT_ERROR_NONE) { in ~LabelGuard()
45 MS_LOG(ERROR) << "rtFree label_info failed! ret: " << rt_ret; in ~LabelGuard()
65 rtError_t rt_ret; in GetLabelInfo() local
101 rt_ret = rtMalloc(&label_info, label_info_size, RT_MEMORY_HBM); in GetLabelInfo()
102 if (rt_ret != RT_ERROR_NONE) { in GetLabelInfo()
103 MS_LOG(ERROR) << "Call rt api rtMalloc failed, ret: " << rt_ret; in GetLabelInfo()
107rt_ret = rtLabelListCpy(label_list.data(), SizeToUint(label_list.size()), label_info, label_info_s… in GetLabelInfo()
108 if (rt_ret != RT_ERROR_NONE) { in GetLabelInfo()
109 MS_LOG(ERROR) << "Call rt api rtLabelListCpy failed, ret: " << rt_ret; in GetLabelInfo()
Devent_wait_task.cc46 rtError_t rt_ret = rtStreamWaitEvent(stream_, event_); in Distribute() local
47 if (rt_ret != RT_ERROR_NONE) { in Distribute()
48 MS_LOG(EXCEPTION) << "Call rt api rtStreamWaitEvent failed, ret: " << rt_ret; in Distribute()
51 rt_ret = rtEventReset(event_, stream_); in Distribute()
52 if (rt_ret != RT_ERROR_NONE) { in Distribute()
53 MS_LOG(EXCEPTION) << "Call rt api rtEventReset failed, ret: " << rt_ret; in Distribute()
Dhccl_task.cc169 …rtError_t rt_ret = rtStreamCreateWithFlags(stream, priority_, RT_STREAM_PERSISTENT | RT_STREAM_FOR… in CreateStream() local
170 if (rt_ret != RT_ERROR_NONE) { in CreateStream()
171 MS_LOG(EXCEPTION) << "Call rt api rtEventRecord failed, ret: " << rt_ret; in CreateStream()
174 rt_ret = rtModelBindStream(model, *stream, RT_MODEL_WAIT_ACTIVE_STREAM); in CreateStream()
175 if (rt_ret != RT_ERROR_NONE) { in CreateStream()
176 MS_LOG(EXCEPTION) << "Call rt api rtEventRecord failed, ret: " << rt_ret; in CreateStream()
190 rtError_t rt_ret = rtModelUnbindStream(model_, stream_); in ~StreamGuard() local
191 if (rt_ret != RT_ERROR_NONE) { in ~StreamGuard()
192 MS_LOG(ERROR) << "Call rt api rtModelUnbindStream failed, ret: " << rt_ret; in ~StreamGuard()
196 rt_ret = rtStreamDestroy(stream_); in ~StreamGuard()
[all …]
Dstream_active_task.cc48 rtError_t rt_ret = rtStreamActive(active_stream_, stream_); in Distribute() local
49 if (rt_ret != RT_ERROR_NONE) { in Distribute()
50 MS_LOG(EXCEPTION) << "Call rt api rtStreamActive failed, ret: " << rt_ret; in Distribute()
Dmemcpy_async_task.cc42 …rtError_t rt_ret = rtMemcpyAsync(task_info_->dst(), task_info_->dst_max(), task_info_->src(), task… in Distribute() local
44 if (rt_ret != RT_ERROR_NONE) { in Distribute()
45 MS_LOG(EXCEPTION) << "Call rt api rtMemcpyAsync failed, ret: " << rt_ret; in Distribute()
Devent_record_task.cc46 rtError_t rt_ret = rtEventRecord(event_, stream_); in Distribute() local
47 if (rt_ret != RT_ERROR_NONE) { in Distribute()
48 MS_LOG(EXCEPTION) << "Call rt api rtEventRecord failed, ret: " << rt_ret; in Distribute()
Dlabel_set_task.cc47 rtError_t rt_ret = rtLabelSet(label_, stream_); in Distribute() local
48 if (rt_ret != RT_ERROR_NONE) { in Distribute()
49 MS_LOG(EXCEPTION) << "Call rt api rtLabelSet failed, ret: " << rt_ret; in Distribute()
Dprofiler_task.cc50 …rtError_t rt_ret = rtProfilerTraceEx(first_id, new_model_id, static_cast<uint16_t>(task_info_->log… in Distribute() local
51 if (rt_ret != RT_ERROR_NONE) { in Distribute()
52 MS_LOG(EXCEPTION) << "Call rt api rtProfilerTraceEx failed, ret: " << rt_ret; in Distribute()
Dstream_switch_task.cc62 rtError_t rt_ret = rtStreamSwitchEx(input, cond, value, true_stream, stream_, data_type); in Distribute() local
63 if (rt_ret != RT_ERROR_NONE) { in Distribute()
64 MS_LOG(EXCEPTION) << "Call rt api rtStreamSwitchEx failed, ret: " << rt_ret; in Distribute()
Dlabel_switch_task.cc51 …rtError_t rt_ret = rtLabelSwitchByIndex(task_info_->cond(), task_info_->label_size(), label_info, … in Distribute() local
52 if (rt_ret != RT_ERROR_NONE) { in Distribute()
53 MS_LOG(EXCEPTION) << "Call rt api rtLabelSwitchByIndex failed, ret: " << rt_ret; in Distribute()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/ge_runtime/
Druntime_model.cc74 rtError_t rt_ret = rtStreamCreateWithFlags(&stream, davinci_model->GetPriority(), flag); in InitStream() local
75 if (rt_ret != RT_ERROR_NONE) { in InitStream()
76 MS_LOG(EXCEPTION) << "Call rt api rtStreamCreate failed, ret: " << rt_ret; in InitStream()
85 rt_ret = rtModelBindStream(rt_model_handle_, stream, flag); in InitStream()
86 if (rt_ret != RT_ERROR_NONE) { in InitStream()
87 MS_LOG(EXCEPTION) << "Call rt api rtModelBindStream failed, ret: " << rt_ret; in InitStream()
97 rtError_t rt_ret = rtEventCreate(&rt_event); in InitEvent() local
98 if (rt_ret != RT_ERROR_NONE) { in InitEvent()
99 MS_LOG(EXCEPTION) << "Call rt api rtEventCreate failed, ret: " << rt_ret; in InitEvent()
122 rtError_t rt_ret = rtLabelCreateEx(&rt_label, stream_list_[label_set_task_info->stream_id()]); in InitLabel() local
[all …]
/third_party/mindspore/mindspore/lite/src/runtime/kernel/ascend310/src/
Dmodel_infer.cc80 aclError rt_ret = aclrtSetCurrentContext(context_); in Finalize() local
81 if (rt_ret != ACL_ERROR_NONE) { in Finalize()
93 rt_ret = aclrtDestroyContext(context_); in Finalize()
94 if (rt_ret != ACL_ERROR_NONE) { in Finalize()
101 rt_ret = aclrtResetDevice(options_.device_id); in Finalize()
102 if (rt_ret != ACL_ERROR_NONE) { in Finalize()
121 aclError rt_ret = aclrtSetCurrentContext(context_); in Load() local
122 if (rt_ret != ACL_ERROR_NONE) { in Load()
123 MS_LOG(ERROR) << "Set the ascend device context failed, ret = " << rt_ret; in Load()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/dump/
Ddata_dumper.cc326 rtError_t rt_ret = rtMalloc(&op_debug_buffer_addr_, kOpDebugHostMemSize, RT_MEMORY_DDR); in OpDebugRegister() local
327 if (rt_ret != RT_ERROR_NONE) { in OpDebugRegister()
328 MS_LOG(EXCEPTION) << "[DataDump] Call rtMalloc failed, ret = " << rt_ret; in OpDebugRegister()
331 rt_ret = rtMalloc(&op_debug_dump_args_, kOpDebugDevMemSize, RT_MEMORY_HBM); in OpDebugRegister()
332 if (rt_ret != RT_ERROR_NONE) { in OpDebugRegister()
333 MS_LOG(EXCEPTION) << "[DataDump] Call rtMalloc failed, ret = " << rt_ret; in OpDebugRegister()
336 rt_ret = in OpDebugRegister()
338 if (rt_ret != RT_ERROR_NONE) { in OpDebugRegister()
339 MS_LOG(EXCEPTION) << "[DataDump] Call rtMemcpy failed, ret = " << rt_ret; in OpDebugRegister()
342rt_ret = rtDebugRegister(model_handle_(), op_debug_mode, op_debug_buffer_addr_, &debug_stream_id_,… in OpDebugRegister()
[all …]
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/acl/
Dacl_graph_impl.cc134 aclError rt_ret = aclrtSetCurrentContext(context_); in FinalizeEnv() local
135 if (rt_ret != ACL_ERROR_NONE) { in FinalizeEnv()
147 rt_ret = aclrtDestroyContext(context_); in FinalizeEnv()
148 if (rt_ret != ACL_ERROR_NONE) { in FinalizeEnv()
155 rt_ret = aclrtResetDevice(device_id_); in FinalizeEnv()
156 if (rt_ret != ACL_ERROR_NONE) { in FinalizeEnv()
197 aclError rt_ret = aclrtSetCurrentContext(context_); in Load() local
198 if (rt_ret != ACL_ERROR_NONE) { in Load()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/executor/rts/
Dprofiling_rts_dynamic_kernel.cc25 auto rt_ret = rtProfilerTrace(log_id_, notify_, flags_, stream_); in Execute() local
26 if (rt_ret != RT_ERROR_NONE) { in Execute()
/third_party/mindspore/mindspore/ccsrc/cxx_api/graph/ascend/
Dascend_graph_impl.cc109 rtError_t rt_ret = rtCtxSetCurrent(context_); in ExecuteModel() local
110 if (rt_ret != RT_ERROR_NONE) { in ExecuteModel()
230 rtError_t rt_ret = rtCtxGetCurrent(&context_); in Load() local
231 if (rt_ret != RT_ERROR_NONE || context_ == nullptr) { in Load()
240 rtError_t rt_ret = rtCtxSetCurrent(context_); in Load() local
241 if (rt_ret != RT_ERROR_NONE) { in Load()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/profiling/
Dprofiling_manager.cc176 rtError_t rt_ret = rtProfRegisterCtrlCallback(GE, CtrlCallbackHandle); in ProfRegisterCtrlCallback() local
177 if (rt_ret != RT_ERROR_NONE) { in ProfRegisterCtrlCallback()
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/
Dascend_kernel_runtime.cc289 auto rt_ret = rtRegTaskFailCallbackByModule(kModuleName, nullptr); in ReleaseDeviceRes() local
290 if (rt_ret != RT_ERROR_NONE) { in ReleaseDeviceRes()
291 MS_LOG(EXCEPTION) << "Reg SetTaskFailCallback failed, error: " << rt_ret; in ReleaseDeviceRes()
356 auto rt_ret = rtRegTaskFailCallbackByModule(kModuleName, TaskFailCallback); in Init() local
357 if (rt_ret != RT_ERROR_NONE) { in Init()
358 MS_LOG(EXCEPTION) << "Reg SetTaskFailCallback failed, error: " << rt_ret; in Init()
1160 auto rt_ret = rtGetTaskIdAndStreamID(&task_id, &stream_id); in KernelLaunchProfiling() local
1161 if (rt_ret != RT_ERROR_NONE) { in KernelLaunchProfiling()