remove stream locks where it is safe to do so

This commit is contained in:
Jeff Daily
2019-07-10 20:11:41 +00:00
parent 866cc4e646
commit f096a3239e
4 changed files with 14 additions and 29 deletions
+1 -3
View File
@@ -191,10 +191,8 @@ hipError_t hipEventSynchronize(hipEvent_t event) {
ctx->locked_syncDefaultStream(true, true);
return ihipLogStatus(hipSuccess);
} else {
ecd._stream->locked_eventWaitComplete(
ecd.marker(), (event->_flags & hipEventBlockingSync) ? hc::hcWaitModeBlocked
ecd.marker().wait((event->_flags & hipEventBlockingSync) ? hc::hcWaitModeBlocked
: hc::hcWaitModeActive);
return ihipLogStatus(hipSuccess);
}
} else {