Skip to content

Feature Request: create SyclDevice and attribute to and from dlpack Enum in Python #1929

Closed
@icfaust

Description

@icfaust

There is already functionality for converting SyclDevices into dlpack_device Enums (c_dlpack.get_parent_device_ordinal_id) occurring in Cython. dpctl Tensors also already include a __dlpack_device__, would it be possible to enhance operability with dlpack by including a __dlpack_device__ attribute to SyclDevice, and make a SyclDevice creator arg if passed a dlpack enum?

Thanks

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions