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.

118 Module Documentation3.23.2.4 CUresult cuEventQuery (CUevent hEvent)Returns <strong>CUDA</strong>_SUCCESS if the event has actually been recorded, or <strong>CUDA</strong>_ERROR_NOT_READY if not. IfcuEventRecord() has not been called on this event, the function returns <strong>CUDA</strong>_ERROR_INVALID_VALUE.Parameters:hEvent - Event to queryReturns: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_INVALID_VALUE,<strong>CUDA</strong>_ERROR_NOT_READYSee also:Note that this function may also return error codes from previous, asynchronous launches.cuEventCreate, cuEventRecord, cuEventSynchronize, cuEventDestroy, cuEventElapsedTime3.23.2.5 CUresult cuEventRecord (CUevent hEvent, CUstream hStream)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. Sinceoperation is asynchronous, cuEventQuery() and/or cuEventSynchronize() must be used to determine when the eventhas actually been recorded.If cuEventRecord() has previously been called and the event has not been recorded yet, this function returns <strong>CUDA</strong>_-ERROR_INVALID_VALUE.Parameters:hEvent - Event to recordhStream - Stream to record event forReturns: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_INVALID_VALUESee also:Note that this function may also return error codes from previous, asynchronous launches.cuEventCreate, cuEventQuery, cuEventSynchronize, cuEventDestroy, cuEventElapsedTime3.23.2.6 CUresult cuEventSynchronize (CUevent hEvent)Waits until the event has actually been recorded. If cuEventRecord() has been called on this event, the function returns<strong>CUDA</strong>_ERROR_INVALID_VALUE.If cuEventRecord() has previously been called and the event has not been recorded yet, this function returns <strong>CUDA</strong>_-ERROR_INVALID_VALUE.Generated 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!