You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add get_device_id method to SyclDevice and permit construction of SyclDevice from result id
This enables users to convert from a dldevice ID to a SYCL device, i.e.,
```
import dpctl
import dpctl.tensor as dpt
x = dpt.arange(10)
dldev = x.__dlpack_device__()
dev = dpctl.SyclDevice(dldev[1])
print(dev.get_device_id() == dldev[1])
```
0 commit comments