Lock streams when waiting on event completion or querying event safety.

This commit is contained in:
Ben Sander
2017-08-26 14:39:14 +00:00
parent e2a25fcab4
commit bc9ba7cd81
4 changed files with 52 additions and 14 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int
if (stream != hipStreamNull) {
// This will user create_blocking_marker to wait on the specified queue.
stream->locked_waitEvent(event);
stream->locked_streamWaitEvent(event);
} else {
// TODO-hcc Convert to use create_blocking_marker(...) functionality.