11.01.2014 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.28 Event Management 139<br />

See also:<br />

cuEventRecord, cuEventQuery, cuEventSynchronize, cuEventDestroy, cuEventElapsedTime<br />

4.28.2.2 cuEventDestroy (CUevent hEvent)<br />

Destroys the event specified by event.<br />

Parameters:<br />

hEvent - Event to destroy<br />

Returns:<br />

Note:<br />

<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-<br />

ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_HANDLE<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

See also:<br />

cuEventCreate, cuEventRecord, cuEventQuery, cuEventSynchronize, cuEventElapsedTime<br />

4.28.2.3 cuEventElapsedTime (float ∗ pMilliseconds, CUevent hStart, CUevent hEnd)<br />

Computes the elapsed time between two events (in milliseconds with a resolution of around 0.5 microseconds). If<br />

either event has not been recorded yet, this function returns <strong>CUDA</strong>_ERROR_NOT_READY. If either event has been<br />

recorded with a non-zero stream, the result is undefined.<br />

Parameters:<br />

pMilliseconds - Returned elapsed time in milliseconds<br />

hStart - Starting event<br />

hEnd - Ending event<br />

Returns:<br />

Note:<br />

<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-<br />

ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_HANDLE, <strong>CUDA</strong>_ERROR_NOT_READY<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

See also:<br />

cuEventCreate, cuEventRecord, cuEventQuery, cuEventSynchronize, cuEventDestroy<br />

Generated 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!