rocr: GPU core file location support (#1732)

* rocr: WIP Support dump of GPU core file

* WIP new core dump tests compile

* WIP: anony namespaces, test updates, progress

Added disabled Fault test. Other non-disabled coredump tests don't work.

* WIP: address code review feedback

* WIP: gpu core dump rocrtst works; combined

* WIP: remove rocrtst changes for this commit
This commit is contained in:
cfreeamd
2025-11-20 20:50:51 -06:00
committed by GitHub
parent adf6a5ec3b
commit 24c2a84e3f
4 changed files with 407 additions and 61 deletions
@@ -1323,8 +1323,8 @@ bool AqlQueue::ExceptionHandler(hsa_signal_value_t error_code, void* arg) {
return exceptionHandlerDone();
}
// Fallback if KFD does not support GPU core dump. In this case, there core dump is
// generated by hsa-runtime.
// Fallback if KFD does not support GPU core dump. In this case, the core
// dump is generated by hsa-runtime.
if (!core::Runtime::runtime_singleton_->KfdVersion().supports_core_dump &&
queue->agent_->supported_isas()[0]->GetMajorVersion() != 11) {
@@ -2236,7 +2236,7 @@ bool Runtime::VMFaultHandler(hsa_signal_value_t val, void* arg) {
PrintMemoryMapNear(reinterpret_cast<void*>(fault.VirtualAddress));
#endif
}
// Fallback if KFD does not support GPU core dump. In this case, there core dump is
// Fallback if KFD does not support GPU core dump. In this case, the core dump is
// generated by hsa-runtime.
if (faulty_agent &&
faulty_agent->supported_isas()[0]->GetMajorVersion() != 11 &&