SWDEV-247372 - Add logging for debug
Change-Id: Id5a27034005a7deba37072d8a4c6f250104a96c8
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Maneesh Gupta
γονέας
82e572c23f
υποβολή
8e08880cc3
@@ -2524,6 +2524,7 @@ bool Device::IsHwEventReady(const amd::Event& event, bool wait) const {
|
||||
void* hw_event = (event.NotifyEvent() != nullptr) ?
|
||||
event.NotifyEvent()->HwEvent() : event.HwEvent();
|
||||
if (hw_event == nullptr) {
|
||||
ClPrint(amd::LOG_INFO, amd::LOG_SIG, "No HW event");
|
||||
return false;
|
||||
} else if (wait) {
|
||||
WaitForSignal(reinterpret_cast<ProfilingSignal*>(hw_event)->signal_);
|
||||
|
||||
@@ -120,6 +120,7 @@ void HostQueue::finish() {
|
||||
// Check HW status of the ROCcrl event. Note: not all ROCclr modes support HW status
|
||||
static constexpr bool kWaitCompletion = true;
|
||||
if (!device().IsHwEventReady(command->event(), kWaitCompletion)) {
|
||||
ClPrint(LOG_DEBUG, LOG_CMD, "HW Event not ready, awaiting completion instead");
|
||||
command->awaitCompletion();
|
||||
}
|
||||
command->release();
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user