12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

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

Create successful ePaper yourself

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

16 Module Documentation3.6 Event ManagementFunctions• cudaError_t cudaEventCreate (cudaEvent_t ∗event)Creates an event object.• cudaError_t cudaEventCreateWithFlags (cudaEvent_t ∗event, int flags)Creates an event object with the specified flags.• cudaError_t cudaEventDestroy (cudaEvent_t event)Destroys an event object.• cudaError_t cudaEventElapsedTime (float ∗ms, cudaEvent_t start, cudaEvent_t end)Computes the elapsed time between events.• cudaError_t cudaEventQuery (cudaEvent_t event)Query if an event has been recorded.• cudaError_t cudaEventRecord (cudaEvent_t event, cudaStream_t stream)Records an event.• cudaError_t cudaEventSynchronize (cudaEvent_t event)Wait for an event to be recorded.3.6.1 Detailed DescriptionThis section describes the event management functions of the <strong>CUDA</strong> runtime application programming interface.3.6.2 Function Documentation3.6.2.1 cudaError_t cudaEventCreate (cudaEvent_t ∗ event)Creates an event object using cudaEventDefault.Parameters:event - Newly created eventReturns:Note:cudaSuccess, cudaErrorInitializationError, cudaErrorPriorLaunchFailure, cudaErrorInvalidValue, cudaErrorMemoryAllocationSee also:Note that this function may also return error codes from previous, asynchronous launches.cudaEventCreateWithFlags, cudaEventRecord, cudaEventQuery, cudaEventSynchronize, cudaEventDestroy, cudaEventElapsedTimeGenerated 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!