Skip to main content

cuEventCreate

Function cuEventCreate 

Source
pub unsafe extern "C" fn cuEventCreate(
    phEvent: *mut CUevent,
    Flags: c_uint,
) -> CUresult
Expand description

Creates an event.

Creates an event *phEvent for the current context with the flags specified via Flags. Valid flags include:

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

See also: cuEventRecord, cuEventQuery, cuEventSynchronize, cuEventDestroy, cuEventElapsedTime, cudaEventCreate, cudaEventCreateWithFlags.