Skip to content

Track handle hierarchy in the validation layer #868

Open
@pbalcer

Description

@pbalcer

Validation layer currently does not differentiate between different types of handles. Its all just pointers. However, there's sufficient information to track both the type of a handle and the hierarchy of handles in a UR-based application (e.g., devices belong to a platform). Implementing such tracking would allow the validation layer to tell whether correct handles are used in a call (e.g., correct pair of context and device) and whether resources are released in the correct order (i.e., all platforms belonging to an adapter are released before the adapter itself is released).

  • Handle correctness and compatibility checks.
  • Release order checks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestloaderLoader related feature/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions