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
[ROCm/ROCR-Runtime commit: 8d4608ed0e]
This commit is contained in:
committed by
Sean Keely
vanhempi
06cc198b57
commit
690aef5c9e
@@ -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) {
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user