Clear queue error code when not handling exceptions

If left non-zero the event loop will keep reinvoking the callback,
preventing AqlQueue::ExceptionHandler from running.

Change-Id: If85fbaf62f04ffd327ecf9d649aa23afad4442ce
This commit is contained in:
Jay Cornwall
2021-06-02 16:59:09 -05:00
committed by Sean Keely
parent 7e4088309d
commit 8d4608ed0e
@@ -921,6 +921,9 @@ bool AqlQueue::DynamicScratchHandler(hsa_signal_value_t error_code, void* arg) {
errorCode = HSA_STATUS_ERROR;
fatal = true;
}
} else {
// Not handling exceptions, clear so that ExceptionHandler can run.
HSA::hsa_signal_store_relaxed(queue->amd_queue_.queue_inactive_signal, 0);
}
if (errorCode == HSA_STATUS_SUCCESS) {