diff --git a/runtime/hsa-runtime/core/runtime/signal.cpp b/runtime/hsa-runtime/core/runtime/signal.cpp index f76d00404d..de943e2465 100644 --- a/runtime/hsa-runtime/core/runtime/signal.cpp +++ b/runtime/hsa-runtime/core/runtime/signal.cpp @@ -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(&fault.Failure); - if (*failure != 0) { + if (fault.Flags == HSA_EVENTID_MEMORY_FATAL_PROCESS) { return i; } }