Skip to content

Add C-API function UsmNDArray_MakeFromMemory and UsmNDArray_SetWritableFlag #1049

Closed

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.

Activity

  1. changed the title [-]Add C-API function UsmNDArray_Make and UsmNDArray_SetWritableFlag[/-] [+]Add C-API function UsmNDArray_MakeFromMemory and UsmNDArray_SetWritableFlag[/+] on Jan 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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