Skip to main content

cuGraphEventRecordNodeSetEvent

Function cuGraphEventRecordNodeSetEvent 

Source
pub unsafe extern "C" fn cuGraphEventRecordNodeSetEvent(
    hNode: CUgraphNode,
    event: CUevent,
) -> CUresult
Expand description

Sets an event record node’s event.

Sets the event of event record node hNode to event.

Note: This function will reset the node’s context to the event’s device context.

Note: Graph objects are not threadsafe. More here.

Note that this function may also return error codes from previous, asynchronous launches.

§Parameters

  • hNode: Node to set the event for.
  • event: Event to use.

§Return value

See also: cuGraphNodeSetParams, cuGraphAddEventRecordNode, cuGraphEventRecordNodeGetEvent, cuGraphEventWaitNodeSetEvent, cuEventRecordWithFlags, cuStreamWaitEvent.