Set event state AFTER it is recorded.

[ROCm/hip commit: 4c3b65a5cd]
Этот коммит содержится в:
Ben Sander
2017-11-05 10:32:24 -06:00
родитель 04d9ec1400
Коммит 6a4c50cf6c
2 изменённых файлов: 3 добавлений и 4 удалений
+1 -1
Просмотреть файл
@@ -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);
}