pub unsafe fn destroy(event: CUevent) -> Result<(), DriverError>
Expand description
Destroys an event.
An event may be destroyed before it is complete (i.e., while cuEventQuery() would return CUDA_ERROR_NOT_READY). In this case, the call does not block on completion of the event, and any associated resources will automatically be released asynchronously at completion.
See cuda docs
Safety
- Event must not have been freed already