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.

18 Module Documentationstart - Starting eventend - Stopping eventReturns:Note:cudaSuccess, cudaErrorInvalidValue, cudaErrorInitializationError, cudaErrorPriorLaunchFailure, cudaErrorInvalidResourceHandleSee also:Note that this function may also return error codes from previous, asynchronous launches.cudaEventCreate, cudaEventCreateWithFlags, cudaEventQuery, cudaEventSynchronize, cudaEventDestroy, cudaEventRecord3.6.2.5 cudaError_t cudaEventQuery (cudaEvent_t event)Returns cudaSuccess if the event has actually been recorded, or cudaErrorNotReady if not. If cudaEventRecord() hasnot been called on this event, the function returns cudaErrorInvalidValue.Parameters:event - Event to queryReturns:Note:cudaSuccess, cudaErrorNotReady, cudaErrorInitializationError, cudaErrorPriorLaunchFailure, cudaErrorInvalid-Value cudaErrorInvalidResourceHandleSee also:Note that this function may also return error codes from previous, asynchronous launches.cudaEventCreate, cudaEventCreateWithFlags, cudaEventRecord, cudaEventSynchronize, cudaEventDestroy, cudaEventElapsedTime3.6.2.6 cudaError_t cudaEventRecord (cudaEvent_t event, cudaStream_t stream)Records an event. If stream is non-zero, the event is recorded after all preceding operations in the stream have beencompleted; otherwise, it is recorded after all preceding operations in the <strong>CUDA</strong> context have been completed. Sincethis operation is asynchronous, cudaEventQuery() and/or cudaEventSynchronize() must be used to determine whenthe event has actually been recorded.If cudaEventRecord() has previously been called and the event has not been recorded yet, this function returns cudaErrorInvalidValue.Parameters:event - Event to recordstream - Stream in which to record eventGenerated 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!