-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve interoperability between SyclDevice
and DLPack devices
#1953
base: master
Are you sure you want to change the base?
Conversation
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1953/index.html |
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_368 ran successfully. |
ac69747
to
eb7f4fe
Compare
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_411 ran successfully. |
eb7f4fe
to
c529b29
Compare
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_413 ran successfully. |
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_415 ran successfully. |
@icfaust |
Full dpctl namespace is unnecessary, as only SyclDevice is used
f010c23
to
5d4c8e8
Compare
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_436 ran successfully. |
5d4c8e8
to
ec6c1d9
Compare
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_440 ran successfully. |
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_441 ran successfully. |
9559620
to
b1e8df1
Compare
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_440 ran successfully. |
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_450 ran successfully. |
@oleksandr-pavlyk |
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_452 ran successfully. |
64687a2
to
7a9c6a8
Compare
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_452 ran successfully. |
This PR proposes improving dpctl's interoperability with DLPack by
get_device_id
todpctl.SyclDevice
which returns the ordinal ID of a root devicedpctl.tensor.dldevice_to_sycldevice
and its conversedpctl.tensor.sycldevice_to_dldevice
which function as conversions betweendpctl.SyclDevices
and the DLPack device tuples returned byarr.__dlpack_device__()
for some arrayarr
from an arbitrary array libraryCloses #1929