numba_dpex.core.types.dpctl_types¶
Overview¶
A Numba type to represent a dpctl.SyclQueue PyObject. |
|
A Numba type to represent a dpctl.SyclEvent PyObject. |
|
Convert a SyclQueue object to a native structure. |
|
Boxes a NativeValue representation of DpctlSyclQueue type into a |
|
Convert a SyclEvent object to a native structure. |
|
Boxes a NativeValue representation of DpctlSyclEvent type into a |
Classes¶
- class DpctlSyclQueue(sycl_queue)¶
Bases:
numba.types.Type
A Numba type to represent a dpctl.SyclQueue PyObject.
Overview
¶ -
Members
- rand_digit_str(n)¶
- class DpctlSyclEvent¶
Bases:
numba.types.Type
A Numba type to represent a dpctl.SyclEvent PyObject.
Functions¶
- unbox_sycl_queue(typ, obj, c)¶
Convert a SyclQueue object to a native structure.
- box_sycl_queue(typ, val, c)¶
Boxes a NativeValue representation of DpctlSyclQueue type into a dpctl.SyclQueue PyObject
At this point numba-dpex does not support creating a dpctl.SyclQueue inside a dpjit decorated function. For this reason, boxing is only returns the original parent object stored in DpctlSyclQueue’s data model.
- Parameters:
typ – The representation of the DpnpNdArray type.
val – A native representation of a Numba DpnpNdArray type object.
c – The boxing context.
Returns: A Pyobject for a dpnp.ndarray boxed from the Numba native value.
- unbox_sycl_event(typ, obj, c)¶
Convert a SyclEvent object to a native structure.
- box_sycl_event(typ, val, c)¶
Boxes a NativeValue representation of DpctlSyclEvent type into a dpctl.SyclEvent PyObject
At this point numba-dpex does not support creating a dpctl.SyclEvent inside a dpjit decorated function. For this reason, boxing is only returns the original parent object stored in DpctlSyclEvent’s data model.
- Parameters:
typ – The representation of the dpctl.SyclEvent type.
val – A native representation of a Numba DpctlSyclEvent type object.
c – The boxing context.
Returns: A Pyobject for a dpctl.SyclEvent boxed from the Numba native value.