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.

116 Module Documentation3.23 Event ManagementFunctions• CUresult cuEventCreate (CUevent ∗ppEvent, unsigned int Flags)Creates an event.• CUresult cuEventDestroy (CUevent hEvent)Destroys an event.• CUresult cuEventElapsedTime (float ∗pMilliseconds, CUevent hStart, CUevent hEnd)Computes the elapsed time between two events.• CUresult cuEventQuery (CUevent hEvent)Queries an event’s status.• CUresult cuEventRecord (CUevent hEvent, CUstream hStream)Records an event.• CUresult cuEventSynchronize (CUevent hEvent)Waits for an event to complete.3.23.1 Detailed DescriptionThis section describes the event management functions of the low-level <strong>CUDA</strong> driver application programming interface.3.23.2 Function Documentation3.23.2.1 CUresult cuEventCreate (CUevent ∗ ppEvent, unsigned int Flags)Creates an event ∗ppEvent with the flags specified via Flags. Valid flags include:• CU_EVENT_DEFAULT: Default event creation flag• CU_EVENT_BLOCKING_SYNC: Specifies that event should use blocking synchronizationParameters:ppEvent - Returns newly created eventFlags - Event creation flagsReturns: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_VALUE, <strong>CUDA</strong>_ERROR_OUT_OF_MEMORYNote that this function may also return error codes from previous, asynchronous launches.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!