Set event state AFTER it is recorded.

[ROCm/clr commit: 1c65bb1684]
This commit is contained in:
Ben Sander
2017-11-05 10:32:24 -06:00
förälder eb4a2f36d7
incheckning 0c5ce41d7c
2 ändrade filer med 3 tillägg och 4 borttagningar
+1 -1
Visa fil
@@ -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);
}