-
Notifications
You must be signed in to change notification settings - Fork 235
Closed
Labels
P1Medium priority - Should doMedium priority - Should docuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core modulefeatureNew feature or requestNew feature or request
Milestone
Description
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.
Metadata
Metadata
Assignees
Labels
P1Medium priority - Should doMedium priority - Should docuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core modulefeatureNew feature or requestNew feature or request