Skip to content

Add the public InfiniRT event bridge #7

Description

@voltjia

Problem

torch-infini has no public event abstraction for dependency tracking, timing,
or stream coordination.

Scope

  • Wrap InfiniRT event create, record, query, synchronize, elapsed-time, and
    destroy operations.
  • Provide a PyTorch-compatible torch.infini.Event surface.
  • Implement stream wait-event behavior with correct lifetime ownership.
  • Add CPU capability/error tests and NVIDIA behavioral tests.
  • Do not change allocator or operator behavior in this change.

Acceptance criteria

  • Events can be recorded on nondefault streams and queried without blocking.
  • synchronize, elapsed_time, and wait_event follow PyTorch semantics.
  • Unsupported backend capabilities fail clearly.

Depends on #6.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions