Skip to content

Commit 3d568a1

Browse files
authored
Merge pull request #230 from AMD-ROCm-Internal/amd/dev/todli/6.4.2/SWDEV-541096_addEventWaitExternal
Auto-submit by Jenkins
2 parents a055458 + 4dd526e commit 3d568a1

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

include/hip/hip_runtime_api.h

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,13 @@ enum hipLimit_t {
692692
/** Event is captured in the graph as an external event node when performing stream capture. */
693693
#define hipEventRecordExternal 0x01
694694

695+
//Flags that can be used with hipStreamWaitEvent.
696+
/** Default flag. */
697+
#define hipEventWaitDefault 0x00
698+
699+
/** Wait is captured in the graph as an external event node when performing stream capture. */
700+
#define hipEventWaitExternal 0x01
701+
695702
/** Disable performing a system scope sequentially consistent memory fence when the event
696703
* transitions from recording to recorded. This can be used for events that are only being
697704
* used to measure timing, and do not require the event inspection operations
@@ -2645,16 +2652,22 @@ hipError_t hipStreamSynchronize(hipStream_t stream);
26452652
/**
26462653
* @brief Make the specified compute stream wait for an event
26472654
*
2648-
* @param[in] stream stream to make wait.
2649-
* @param[in] event event to wait on
2650-
* @param[in] flags control operation [must be 0]
2655+
* @param[in] stream Stream to make wait
2656+
* @param[in] event Event to wait on
2657+
* @param[in] flags Parameters to control the operation
26512658
*
2652-
* @returns #hipSuccess, #hipErrorInvalidHandle
2659+
* @returns #hipSuccess, #hipErrorInvalidHandle, #hipErrorInvalidValue,
2660+
* #hipErrorStreamCaptureIsolation
26532661
*
26542662
* This function inserts a wait operation into the specified stream.
26552663
* All future work submitted to @p stream will wait until @p event reports completion before
26562664
* beginning execution.
26572665
*
2666+
* Flags include:
2667+
* hipEventWaitDefault: Default event creation flag.
2668+
* hipEventWaitExternal: Wait is captured in the graph as an external event node when
2669+
* performing stream capture
2670+
*
26582671
* This function only waits for commands in the current stream to complete. Notably, this function
26592672
* does not implicitly wait for commands in the default stream to complete, even if the specified
26602673
* stream is created with hipStreamNonBlocking = 0.

0 commit comments

Comments
 (0)