Lines Matching refs:DeviceInfo
151 static RTLDeviceInfoTy DeviceInfo; variable
158 veo_call_async(DeviceInfo.Contexts[DeviceID], FuncAddr, args); in target_run_function_wait()
168 int ret = veo_call_wait_result(DeviceInfo.Contexts[DeviceID], RequestHandle, in target_run_function_wait()
180 int32_t __tgt_rtl_number_of_devices(void) { return DeviceInfo.NodeIds.size(); } in __tgt_rtl_number_of_devices()
257 if (DeviceInfo.ProcHandles[ID] == NULL) { in __tgt_rtl_load_binary()
265 proc_handle = veo_proc_create(DeviceInfo.NodeIds[ID]); in __tgt_rtl_load_binary()
271 proc_handle = veo_proc_create_static(DeviceInfo.NodeIds[ID], tmp_name); in __tgt_rtl_load_binary()
278 DeviceInfo.ProcHandles[ID] = proc_handle; in __tgt_rtl_load_binary()
281 if (DeviceInfo.Contexts[ID] == NULL) { in __tgt_rtl_load_binary()
282 struct veo_thr_ctxt *ctx = veo_context_open(DeviceInfo.ProcHandles[ID]); in __tgt_rtl_load_binary()
289 DeviceInfo.Contexts[ID] = ctx; in __tgt_rtl_load_binary()
294 DeviceInfo.ProcHandles[ID], DeviceInfo.Contexts[ID]); in __tgt_rtl_load_binary()
298 LibHandle = veo_load_library(DeviceInfo.ProcHandles[ID], tmp_name); in __tgt_rtl_load_binary()
314 DeviceInfo.DynLibs.push_back(Lib); in __tgt_rtl_load_binary()
315 DeviceInfo.LibraryHandles[ID] = LibHandle; in __tgt_rtl_load_binary()
317 DeviceInfo.buildOffloadTableFromHost(ID, LibHandle, Image->EntriesBegin, in __tgt_rtl_load_binary()
320 return DeviceInfo.getOffloadTable(ID); in __tgt_rtl_load_binary()
344 if (DeviceInfo.ProcHandles[ID] == NULL) { in __tgt_rtl_data_alloc()
346 proc_handle = veo_proc_create(DeviceInfo.NodeIds[ID]); in __tgt_rtl_data_alloc()
351 DeviceInfo.ProcHandles[ID] = proc_handle; in __tgt_rtl_data_alloc()
355 ret = veo_alloc_mem(DeviceInfo.ProcHandles[ID], &addr, Size); in __tgt_rtl_data_alloc()
371 int ret = veo_write_mem(DeviceInfo.ProcHandles[ID], (uint64_t)TargetPtr, in __tgt_rtl_data_submit()
384 int ret = veo_read_mem(DeviceInfo.ProcHandles[ID], HostPtr, in __tgt_rtl_data_retrieve()
396 int ret = veo_free_mem(DeviceInfo.ProcHandles[ID], (uint64_t)TargetPtr); in __tgt_rtl_data_delete()