Skip to content

Properly support dpctl.SyclQueue as a data type inside numba-dpex #930

@diptorupd

Description

@diptorupd

The initial support for the dpctl.SyclQueue type added in 7fe8d9b does not allow using a dpctl.SyclQueue object inside a dpjit function. The basic support only allows passing a queue in and returning it from a dpjit function.

To properly support dpctl.SyclQueue type, the following tasks (and possibly more) needs to be completed:

  1. Add a numba struct type representation for dpctl.SyclQueue.
  2. Define a struct data model for the numba-dpex type representing a Python dpctl.SyclQueue.
  3. Add unboxing that can store the DPCTLSyclQueueRef pointer from a dpctl.SyclQueue object into a Numba native struct.
  4. Add boxing function to create a dpctl.SyclQueue object from a Numba native struct.
  5. Add a make_queue function for internal usage, similar to the make_array function.

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