Function cuEventDestroy_v2

Source
pub unsafe extern "C" fn cuEventDestroy_v2(
    hEvent: CUevent,
) -> CUresult
Expand description

\brief Destroys an event

Destroys the event specified by \p hEvent.

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.

\param hEvent - Event to destroy

\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_HANDLE \notefnerr

\sa ::cuEventCreate, ::cuEventRecord, ::cuEventQuery, ::cuEventSynchronize, ::cuEventElapsedTime, ::cudaEventDestroy