numba_dpex.core#
Subpackages#
Overview#
A Numba type to represent a dpctl.SyclQueue PyObject. |
|
A Numba type to represent a dpctl.SyclEvent PyObject. |
|
The Numba type to represent an dpnp.ndarray. The type has the same |
|
A Literal type for IntEnum objects. The type contains the original Python |
|
The type of KernelDispatcher dispatchers |
|
Numba-dpex type corresponding to |
|
Numba-dpex type corresponding to |
|
A type class to represent dpctl.tensor.usm_ndarray. |
Classes#
- class DpctlSyclQueue(sycl_queue)#
Bases:
numba.types.TypeA Numba type to represent a dpctl.SyclQueue PyObject.
Overview
Methods# -
Members
- rand_digit_str(n)#
- class DpctlSyclEvent#
Bases:
numba.types.TypeA Numba type to represent a dpctl.SyclEvent PyObject.
- class DpnpNdArray(ndim, layout='C', dtype=None, usm_type='device', device=None, queue=None, readonly=False, name=None, aligned=True, addrspace=address_space.GLOBAL.value)#
Bases:
numba_dpex.core.types.usm_ndarray_type.USMNdArrayThe Numba type to represent an dpnp.ndarray. The type has the same structure as USMNdArray used to represent dpctl.tensor.usm_ndarray.
- class IntEnumLiteral(value)#
Bases:
numba.core.types.Literal,numba.core.types.IntegerA Literal type for IntEnum objects. The type contains the original Python value of the IntEnum class in it.
Overview
Methods# can_convert_to(typingctx, other)Check whether this type can be converted to the other.
Members
- can_convert_to(typingctx, other) bool#
Check whether this type can be converted to the other. If successful, must return a string describing the conversion, e.g. “exact”, “promote”, “unsafe”, “safe”; otherwise None is returned.
- class KernelDispatcherType(dispatcher)#
Bases:
numba.core.types.DispatcherThe type of KernelDispatcher dispatchers
Overview
Methods# cast_python_value(args)abc -
Members
- abstract cast_python_value(args)#
- class NdRangeType(ndim: int)#
Bases:
numba.core.types.TypeNumba-dpex type corresponding to
numba_dpex.kernel_api.ranges.NdRange
- class RangeType(ndim: int)#
Bases:
numba.core.types.TypeNumba-dpex type corresponding to
numba_dpex.kernel_api.ranges.Range
- class USMNdArray(ndim, layout='C', dtype=None, usm_type='device', device=None, queue=None, readonly=False, name=None, aligned=True, addrspace=address_space.GLOBAL.value)#
Bases:
numba.core.types.npytypes.ArrayA type class to represent dpctl.tensor.usm_ndarray.
Overview
Methods# copy(dtype, ndim, layout, readonly, addrspace, device, usm_type)-
unify(typingctx, other)Unify this with the other USMNdArray.
can_convert_to(typingctx, other)Convert this USMNdArray to the other.
Members
- copy(dtype=None, ndim=None, layout=None, readonly=None, addrspace=None, device=None, usm_type=None)#
- unify(typingctx, other)#
Unify this with the other USMNdArray.
- can_convert_to(typingctx, other)#
Convert this USMNdArray to the other.
Attributes#
- none#
- uint32#
- uint64#
- int32#
- int64#
- float32#
- float64#
- b1#
- i4#
- i8#
- u4#
- u8#
- f4#
- f8#
- float_#
- double#
- usm_ndarray#
- void#