Detect memory event through Flags field insetad of Failure
KFD no longer reports MemoryAccessFault.Failure with retry fault implementation. ROCr ignores the memory event when Failure = 0. Use the Flags field instead, which will be non-zero when the event is triggered. Change-Id: Ie90799a303b0b2f1b476b20ffafdde79ae137182
Этот коммит содержится в:
@@ -253,9 +253,7 @@ uint32_t Signal::WaitAny(uint32_t signal_count, const hsa_signal_t* hsa_signals,
|
||||
if (event_type == HSA_EVENTTYPE_MEMORY) {
|
||||
const HsaMemoryAccessFault& fault =
|
||||
signals[i]->EopEvent()->EventData.EventData.MemoryAccessFault;
|
||||
const uint32_t* failure =
|
||||
reinterpret_cast<const uint32_t*>(&fault.Failure);
|
||||
if (*failure != 0) {
|
||||
if (fault.Flags == HSA_EVENTID_MEMORY_FATAL_PROCESS) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user