hipStreamWaitEvent returns success if event created but not recorded

This commit is contained in:
Ben Sander
2017-11-06 17:10:07 -06:00
rodzic 4a2e6f8955
commit 16708dd2e0
+2 -1
Wyświetl plik
@@ -98,7 +98,8 @@ hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int
if (event == nullptr) {
e = hipErrorInvalidResourceHandle;
} else if (ecd._state != hipEventStatusUnitialized) {
} else if ((ecd._state != hipEventStatusUnitialized) &&
(ecd._state != hipEventStatusCreated)) {
if (HIP_SYNC_STREAM_WAIT || (HIP_SYNC_NULL_STREAM && (stream == 0))) {
// conservative wait on host for the specified event to complete: