Set event state AFTER it is recorded.

This commit is contained in:
Ben Sander
2017-11-05 10:32:24 -06:00
parent afd3a6786d
commit 1c65bb1684
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int
event->locked_waitComplete((event->_flags & hipEventBlockingSync) ? hc::hcWaitModeBlocked : hc::hcWaitModeActive);
} else {
stream = ihipSyncAndResolveStream(stream);
// This will user create_blocking_marker to wait on the specified queue.
// This will use create_blocking_marker to wait on the specified queue.
stream->locked_streamWaitEvent(event);
}