pub unsafe extern "C" fn cudaEventDestroy(
event: cudaEvent_t,
) -> cudaError_tExpand description
Destroys an event object.
Destroys the event specified by event.
An event may be destroyed before it is complete (i.e., while cudaEventQuery would return cudaError_t::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.
Note that this function may also return error codes from previous, asynchronous launches.
Note that this function may also return cudaError_t::CUDA_ERROR_NOT_INITIALIZED, cudaErrorInsufficientDriver or cudaError_t::CUDA_ERROR_NO_DEVICE if this call tries to initialize internal CUDA RT state.
Note that as specified by cudaStreamAddCallback no CUDA function may be called from callback. cudaError_t::CUDA_ERROR_NOT_PERMITTED may, but is not guaranteed to, be returned as a diagnostic in such case.
Note: Use of the handle after this call is undefined behavior.
Note: Returns cudaError_t::CUDA_ERROR_INVALID_HANDLE in the event of being passed NULL as the input event.
§Parameters
event: Event to destroy
§Return value
cudaError_t::CUDA_SUCCESScudaError_t::CUDA_ERROR_INVALID_VALUEcudaError_t::CUDA_ERROR_INVALID_HANDLEcudaError_t::CUDA_ERROR_LAUNCH_FAILED
See also: cudaEventCreate (C API), cudaEventCreateWithFlags, cudaEventQuery, cudaEventSynchronize, cudaEventRecord, cudaEventElapsedTime, cuEventDestroy.