Merge "Revert "Wake up commandQueue before returning"" into amd-master-next

[ROCm/hip commit: f99db12c82]
Цей коміт міститься в:
Saleel Kudchadker
2020-04-06 18:52:29 -04:00
зафіксовано Gerrit Code Review
джерело 598f761ba7 8ab42fbb08
коміт c0f137cfcf
+2 -10
Переглянути файл
@@ -95,20 +95,12 @@ hipError_t Event::elapsedTime(Event& eStop, float& ms) {
}
hipError_t Event::streamWait(amd::HostQueue* hostQueue, uint flags) {
// Effective no-op if event is NULL
if (event_ == nullptr) {
if ((event_ == nullptr) || (event_->command().queue() == hostQueue)) {
return hipSuccess;
}
amd::ScopedLock lock(lock_);
if (event_->command().queue() == hostQueue) {
// Wake up commandQueue thread
if (!event_->notifyCmdQueue()) {
return hipErrorLaunchOutOfResources;
}
return hipSuccess;
}
bool retain = false;
if (!event_->notifyCmdQueue()) {
return hipErrorLaunchOutOfResources;