Skip to content

Create Event without recording to Stream #485

Closed

Description

@carterbox

There should be a method of creating an Event without recording it immediately to a Stream. My understanding is that the C-API allows you to create an Event then decide what Stream to record it on later. The application of this for use in timing.

Specifically, in nvmath-python we have a timing context manager which automatically creates start and end events, but doesn't record the end event until the context closes. This type of thing is not currently possible with cuda.core.

@leofang suggested that we could implement something like

e1 = Device().create_event(...)

Where the event is created from the Device instead of from the Stream.

Activity

  1. carterbox commented on Mar 3, 2025

    @carterbox
    ContributorAuthor

    I will attempt to implement this before EOD Wednesday March 5.

  2. added a commit that references this issue on Mar 3, 2025
    3cb4034
  3. added
    P1Medium priority - Should do
    featureNew feature or request
    cuda.coreEverything related to the cuda.core module
    and removed
    triageNeeds the team's attention
    on Mar 3, 2025
  4. added this to the cuda.core beta 3 milestone on Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P1Medium priority - Should docuda.coreEverything related to the cuda.core modulefeatureNew feature or request

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions