cuStreamWaitEvent: Make a compute stream wait on an event

Description Usage Arguments References See Also

Description

Makes all future work submitted to hStream wait until hEvent reports completion before beginning execution. This synchronization will be performed efficiently on the device. The event hEvent may be from a different context than hStream, in which case this function will perform cross-device synchronization.

Usage

1
cuStreamWaitEvent(hStream, hEvent, Flags)

Arguments

hStream

Stream to wait

hEvent

Event to wait on (may not be NULL)

Flags

Parameters for the operation (must be 0)

References

http://docs.nvidia.com/cuda/cuda-driver-api/index.html

See Also

cuStreamCreate cuEventRecord cuStreamQuery cuStreamSynchronize cuStreamAddCallback cuStreamDestroy


duncantl/RCUDA documentation built on May 15, 2019, 5:26 p.m.