16 inline namespace _V1 {
17 namespace ext::oneapi::level_zero::detail {
21 ur_native_handle_t NativeHandle) {
22 const auto &Plugin = ur::getPlugin<backend::ext_oneapi_level_zero>();
25 ur_device_handle_t UrDevice;
26 Plugin->call(urDeviceCreateWithNativeHandle, NativeHandle,
27 PlatformImpl->getHandleRef(),
nullptr, &UrDevice);
29 return detail::createSyclObjFromImpl<device>(
30 PlatformImpl->getOrMakeDeviceImpl(UrDevice, PlatformImpl));
The SYCL device class encapsulates a single SYCL device on which kernels may be executed.
decltype(Obj::impl) const & getSyclObjImpl(const Obj &SyclObject)
device make_device(const platform &Platform, ur_native_handle_t NativeHandle)