Skip to content

Address spec generator limitation translating handles in structs #2671

Closed as not planned
@EwanC

Description

@EwanC

As part of PR #2666 I would like to define a UR entry-point that passed a list of structs, with each struct containing handles to UR objects. However the generated ur_ldrddi.cpp code only tranlsates the UR handles of the first struct in the list, which is a limitation in https://oneapi-src.github.io/unified-runtime/core/CONTRIB.html#limitations

This limitation is preventing UR command-buffer update from being able to take advantage of the OpenCL and Level-Zero APIs for update which let you pass a list of commands to update, currently we have to call UR update entry-point in a loop which is extra host overhead. Enabling passing a list of structs would allow more optimal native API usage.

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