numba-dpex icon indicating copy to clipboard operation
numba-dpex copied to clipboard

Implement `static_getitem` for `DpnpNdArray` type

Open diptorupd opened this issue 2 years ago • 0 comments

An implementation for the static_getitem function for DpnpNdArray is missing and that results in the lowering falling back to the generic lower_getitem that in turn resolves to the getitem_arraynd_intp call defined in numba/np/arrayobj.py.

In current main using Numba's function for DpnpNdArray works fine as the underlying data model for DpnpNdArray is the same as types.Array. However, with the changes introduced in #1083 the approach fails. Hence, we need a DpnpNdArray-specific implementation of getitem.

diptorupd avatar Jun 28 '23 05:06 diptorupd