Soften trap handler loading failure when exception handling not supported

GFX11 and up including some GFX9 devices will not support
old trap handling without the new exception handling.

Instead of a hard assert failure that runs into a core dump,
let ROCr initialization continue instead.

Change-Id: I309becdc72ef4fb2fafd118c1faf0801407e658e


[ROCm/ROCR-Runtime commit: bfb94b3b6e]
This commit is contained in:
Jonathan Kim
2023-06-13 12:58:44 -04:00
parent 3736a0ffeb
commit 1772d866c9
@@ -1738,6 +1738,12 @@ void GpuAgent::BindTrapHandler() {
AssembleShader("TrapHandlerKfdExceptions", AssembleTarget::ISA, trap_code_buf_,
trap_code_buf_size_);
} else {
if (isa_->GetMajorVersion() >= 11 ||
(isa_->GetMajorVersion() == 9 && isa_->GetMinorVersion() == 4)) {
// No trap handler support without exception handling, soft error.
return;
}
AssembleShader("TrapHandler", AssembleTarget::ISA, trap_code_buf_, trap_code_buf_size_);
// Make an empty map from doorbell index to queue.