-
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
Conversation
Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞 |
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 |
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. |
50a5523
to
afce3b3
Compare
Full dpctl namespace is unnecessary, as only SyclDevice is used
afce3b3
to
b1a5ecd
Compare
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_460 ran successfully. |
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_462 ran successfully. |
1 similar comment
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_462 ran successfully. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this, @ndgrigorian
Sorry it took a few iterations, but it all looks good now, and we caught few legacy issues too.
Yes, and it cleans up the DLPack code quite nicely. |
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