Lines Matching refs:DeviceRTL

1518 DeviceRTLTy DeviceRTL;  variable
1571 int32_t __tgt_rtl_number_of_devices() { return DeviceRTL.getNumOfDevices(); } in __tgt_rtl_number_of_devices()
1575 DeviceRTL.setRequiresFlag(RequiresFlags); in __tgt_rtl_init_requires()
1580 if (DeviceRTL.isValidDeviceId(SrcDevId) && in __tgt_rtl_is_data_exchangable()
1581 DeviceRTL.isValidDeviceId(DstDevId)) in __tgt_rtl_is_data_exchangable()
1588 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_init_device()
1591 return DeviceRTL.initDevice(DeviceId); in __tgt_rtl_init_device()
1595 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_deinit_device()
1598 return DeviceRTL.deinitDevice(DeviceId); in __tgt_rtl_deinit_device()
1603 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_load_binary()
1605 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_load_binary()
1608 return DeviceRTL.loadBinary(DeviceId, Image); in __tgt_rtl_load_binary()
1613 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_data_alloc()
1615 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_data_alloc()
1618 return DeviceRTL.dataAlloc(DeviceId, Size, (TargetAllocTy)Kind); in __tgt_rtl_data_alloc()
1623 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_data_submit()
1638 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_data_submit_async()
1641 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_data_submit_async()
1644 return DeviceRTL.dataSubmit(DeviceId, TgtPtr, HstPtr, Size, AsyncInfoPtr); in __tgt_rtl_data_submit_async()
1649 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_data_retrieve()
1664 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_data_retrieve_async()
1667 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_data_retrieve_async()
1670 return DeviceRTL.dataRetrieve(DeviceId, HstPtr, TgtPtr, Size, AsyncInfoPtr); in __tgt_rtl_data_retrieve_async()
1676 assert(DeviceRTL.isValidDeviceId(SrcDevId) && "src_dev_id is invalid"); in __tgt_rtl_data_exchange_async()
1677 assert(DeviceRTL.isValidDeviceId(DstDevId) && "dst_dev_id is invalid"); in __tgt_rtl_data_exchange_async()
1680 if (DeviceRTL.setContext(SrcDevId) != OFFLOAD_SUCCESS) in __tgt_rtl_data_exchange_async()
1683 return DeviceRTL.dataExchange(SrcDevId, SrcPtr, DstDevId, DstPtr, Size, in __tgt_rtl_data_exchange_async()
1689 assert(DeviceRTL.isValidDeviceId(SrcDevId) && "src_dev_id is invalid"); in __tgt_rtl_data_exchange()
1690 assert(DeviceRTL.isValidDeviceId(DstDevId) && "dst_dev_id is invalid"); in __tgt_rtl_data_exchange()
1703 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_data_delete()
1705 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_data_delete()
1708 return DeviceRTL.dataDelete(DeviceId, TgtPtr); in __tgt_rtl_data_delete()
1716 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_run_target_team_region()
1733 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_run_target_team_region_async()
1735 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_run_target_team_region_async()
1738 return DeviceRTL.runTargetTeamRegion(DeviceId, TgtEntryPtr, TgtArgs, in __tgt_rtl_run_target_team_region_async()
1746 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_run_target_region()
1762 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_run_target_region_async()
1772 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_synchronize()
1776 return DeviceRTL.synchronize(DeviceId, AsyncInfoPtr); in __tgt_rtl_synchronize()
1785 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_print_device_info()
1787 DeviceRTL.printDeviceInfo(DeviceId); in __tgt_rtl_print_device_info()
1793 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_create_event()
1796 return DeviceRTL.createEvent(DeviceId, Event); in __tgt_rtl_create_event()
1810 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_wait_event()
1814 if (!AsyncInfoPtr->Queue && DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_wait_event()
1816 return DeviceRTL.waitEvent(DeviceId, AsyncInfoPtr, EventPtr); in __tgt_rtl_wait_event()
1828 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_destroy_event()
1831 return DeviceRTL.destroyEvent(DeviceId, EventPtr); in __tgt_rtl_destroy_event()
1836 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_release_async_info()
1839 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_release_async_info()
1842 return DeviceRTL.releaseAsyncInfo(DeviceId, AsyncInfo); in __tgt_rtl_release_async_info()
1847 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_init_async_info()
1850 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_init_async_info()
1853 return DeviceRTL.initAsyncInfo(DeviceId, AsyncInfo); in __tgt_rtl_init_async_info()
1859 assert(DeviceRTL.isValidDeviceId(DeviceId) && "device_id is invalid"); in __tgt_rtl_init_device_info()
1862 if (DeviceRTL.setContext(DeviceId) != OFFLOAD_SUCCESS) in __tgt_rtl_init_device_info()
1865 return DeviceRTL.initDeviceInfo(DeviceId, DeviceInfoPtr, ErrStr); in __tgt_rtl_init_device_info()