12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.23 Event Management 117See also:cuEventRecord, cuEventQuery, cuEventSynchronize, cuEventDestroy, cuEventElapsedTime3.23.2.2 CUresult cuEventDestroy (CUevent hEvent)Destroys the event specified by event.Parameters:hEvent - Event to destroyReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_HANDLENote that this function may also return error codes from previous, asynchronous launches.See also:cuEventCreate, cuEventRecord, cuEventQuery, cuEventSynchronize, cuEventElapsedTime3.23.2.3 CUresult cuEventElapsedTime (float ∗ pMilliseconds, CUevent hStart, CUevent hEnd)Computes the elapsed time between two events (in milliseconds with a resolution of around 0.5 microseconds). Ifeither event has not been recorded yet, this function returns <strong>CUDA</strong>_ERROR_NOT_READY. If either event has beenrecorded with a non-zero stream, the result is undefined.Parameters:pMilliseconds - Returned elapsed time in millisecondshStart - Starting eventhEnd - Ending eventReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_HANDLE, <strong>CUDA</strong>_ERROR_NOT_READYNote that this function may also return error codes from previous, asynchronous launches.See also:cuEventCreate, cuEventRecord, cuEventQuery, cuEventSynchronize, cuEventDestroyGenerated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!