pub unsafe extern "C" fn cuEventCreate(
phEvent: *mut CUevent,
Flags: c_uint,
) -> CUresultExpand description
Creates an event.
Creates an event *phEvent for the current context with the flags specified via Flags. Valid flags include:
CUevent_flags_enum::CU_EVENT_DEFAULT: Default event creation flag.CUevent_flags_enum::CU_EVENT_BLOCKING_SYNC: Specifies that the created event should use blocking synchronization. A CPU thread that usescuEventSynchronizeto wait on an event created with this flag will block until the event has actually been recorded.CUevent_flags_enum::CU_EVENT_DISABLE_TIMING: Specifies that the created event does not need to record timing data. Events created with this flag specified and theCUevent_flags_enum::CU_EVENT_BLOCKING_SYNCflag not specified will provide the best performance when used withcuStreamWaitEventandcuEventQuery.CUevent_flags_enum::CU_EVENT_INTERPROCESS: Specifies that the created event may be used as an interprocess event bycuIpcGetEventHandle.CUevent_flags_enum::CU_EVENT_INTERPROCESSmust be specified along withCUevent_flags_enum::CU_EVENT_DISABLE_TIMING.
Note that this function may also return error codes from previous, asynchronous launches.
§Parameters
phEvent: Returns newly created event.Flags: Event creation flags.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_OUT_OF_MEMORY
See also: cuEventRecord, cuEventQuery, cuEventSynchronize, cuEventDestroy, cuEventElapsedTime, cudaEventCreate, cudaEventCreateWithFlags.