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]
Ta zmiana jest zawarta w:
%! (template.HTML=
Jonathan Kim)złożyło 2023-06-13 13:05:47 -04:00
1 rodzic
3736a0ffeb
złożenie
1772d866c9
Plik 1 zmieniony
+6
@@ -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.
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika