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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user