Function rcudnn::cudaEventDestroy[][src]

pub unsafe extern "C" fn cudaEventDestroy(
    event: *mut CUevent_st
) -> cudaError
Expand description

\brief Destroys an event object

Destroys the event specified by \p event.

An event may be destroyed before it is complete (i.e., while ::cudaEventQuery() would return ::cudaErrorNotReady). 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 event - Event to destroy

\return ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorInvalidResourceHandle, ::cudaErrorLaunchFailure \notefnerr \note_init_rt \note_callback \note_destroy_ub

\sa \ref ::cudaEventCreate(cudaEvent_t*) “cudaEventCreate (C API)”, ::cudaEventCreateWithFlags, ::cudaEventQuery, ::cudaEventSynchronize, ::cudaEventRecord, ::cudaEventElapsedTime, ::cuEventDestroy