SWDEV-284671 - Add HW event wait to improve hipDeviceSynchronize

If AMD event contains a reference to a HW event, then runtime
could check/wait for HW event. CPU status update will occur later
after HSA signal callback, but it's not important for the result.

Change-Id: I591391a953bbdba6a25ac07e2cd98aeb17cd4596
Этот коммит содержится в:
German Andryeyev
2021-06-07 15:56:47 -04:00
коммит произвёл Maneesh Gupta
родитель 5fdf5d05df
Коммит 85c70a7495
5 изменённых файлов: 41 добавлений и 8 удалений
+4 -1
Просмотреть файл
@@ -65,6 +65,10 @@ Event::~Event() {
delete callback;
callback = next;
}
// Release the notify event
if (notify_event_ != nullptr) {
notify_event_->release();
}
}
// ================================================================================================
@@ -272,7 +276,6 @@ bool Event::notifyCmdQueue() {
}
ClPrint(LOG_DEBUG, LOG_CMD, "queue marker to command queue: %p", queue);
command->enqueue();
command->release();
// Save notification, associated with the current event
notify_event_ = command;
}