Main Page
Modules
Data Structures
Related Pages
Event Management
cudaEventCreate
cudaEventCreateWithFlags
cudaEventDestroy
cudaEventElapsedTime
cudaEventQuery
cudaEventRecord
cudaEventSynchronize
cudaError_t
cudaEventCreateWithFlags
(
cudaEvent_t
*
event
,
unsigned int
flags
)
Creates an event object with the specified flags. Valid flags include:
cudaEventDefault
: Default event creation flag.
cudaEventBlockingSync
: Specifies that event should use blocking synchronization. A host thread that uses
cudaEventSynchronize()
to wait on an event created with this flag will block until the event actually completes.
cudaEventDisableTiming
: Specifies that the created event does not need to record timing data. Events created with this flag specified and the
cudaEventBlockingSync
flag not specified will provide the best performance when used with
cudaStreamWaitEvent()
and
cudaEventQuery()
.
Parameters:
event
- Newly created event
flags
- Flags for new event
Returns:
cudaSuccess
,
cudaErrorInitializationError
,
cudaErrorInvalidValue
,
cudaErrorLaunchFailure
,
cudaErrorMemoryAllocation
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaEventCreate (C API)
,
cudaEventSynchronize
,
cudaEventDestroy
,
cudaEventElapsedTime
,
cudaStreamWaitEvent
Generated by Doxygen for NVIDIA CUDA Library