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
[ROCm/clr commit: 85c70a7495]
This commit is contained in:
committed by
Maneesh Gupta
parent
8d7a745246
commit
a9abd850ea
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user