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.

3.6 Event Management 173.6.2.2 cudaError_t cudaEventCreateWithFlags (cudaEvent_t ∗ event, int flags)Creates an event object with the specified flags.Valid flags include: cudaEventDefault, cudaEventBlockingSyncParameters:event - Newly created eventflags - Flags for new eventReturns:Note:cudaSuccess, cudaErrorInitializationError, cudaErrorPriorLaunchFailure, cudaErrorInvalidValue, cudaErrorMemoryAllocationSee also:Note that this function may also return error codes from previous, asynchronous launches.cudaEventCreate, cudaEventRecord, cudaEventQuery, cudaEventSynchronize, cudaEventDestroy, cudaEventElapsedTime3.6.2.3 cudaError_t cudaEventDestroy (cudaEvent_t event)Destroys the specified event object.Parameters:event - Event to destroyReturns:Note:See also:cudaSuccess, cudaErrorInitializationError, cudaErrorPriorLaunchFailure, cudaErrorInvalidValueNote that this function may also return error codes from previous, asynchronous launches.cudaEventCreate, cudaEventCreateWithFlags, cudaEventQuery, cudaEventSynchronize, cudaEventRecord, cudaEventElapsedTime3.6.2.4 cudaError_t cudaEventElapsedTime (float ∗ ms, cudaEvent_t start, cudaEvent_t end)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 cudaErrorInvalidValue. If either event has been recordedwith a non-zero stream, the result is undefined.Parameters:ms - Time between start and stop in msGenerated 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!