Skip to content

Add C-API function UsmNDArray_MakeFromMemory and UsmNDArray_SetWritableFlag #1049

Closed
@oleksandr-pavlyk

Description

@oleksandr-pavlyk

This issue is to implement dpctl.tensor C-API function

cdef api object UsmNDArray_MakeFromMemory(int nd, Py_ssize_t *shape, int typenum, _Memory mobj, Py_ssize_t offset)

to create a usm_ndarray from given memory object and offset.

Also to implement

cdef api void UsmNDArray_SetWritableFlag(usm_ndarray arr, int flag)

See IntelPython/numba-dpex#890 (comment) for context.

Metadata

Metadata

Assignees

No one assigned

    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