Improve interoperability between SyclDevice and DLPack devices#1953
Improve interoperability between SyclDevice and DLPack devices#1953ndgrigorian merged 13 commits intomasterfrom
SyclDevice and DLPack devices#1953Conversation
|
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. |
oleksandr-pavlyk
left a comment
There was a problem hiding this comment.
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_idtodpctl.SyclDevicewhich returns the ordinal ID of a root devicedpctl.tensor.dldevice_to_sycldeviceand its conversedpctl.tensor.sycldevice_to_dldevicewhich function as conversions betweendpctl.SyclDevicesand the DLPack device tuples returned byarr.__dlpack_device__()for some arrayarrfrom an arbitrary array libraryCloses #1929