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
Этот коммит содержится в:
Jay Cornwall
2019-04-15 19:11:49 -05:00
родитель ba029ebe21
Коммит 56f280c8a7
+1 -3
Просмотреть файл
@@ -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;
}
}