[llvm-branch-commits] [compiler-rt] [compiler-rt] Add Device AddressSanitizer runtime (PR #242445)
Joseph Huber via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 20 13:54:39 PST 2026
================
@@ -181,8 +285,16 @@ bool Offload::Init() {
--Refs;
return false;
}
- VReport(1, "%s: device reporting on %zu GPU(s)\n", SanitizerToolName,
- DeviceList.size());
+ CheckHsa(Api.hsa_system_get_info(HSA_AMD_SYSTEM_INFO_EXT_VERSION_MINOR,
+ &AmdExtMinor));
+ VReport(1, "%s: device reporting on %zu GPU(s), AMD extension 1.%u%s\n",
+ SanitizerToolName, DeviceList.size(), AmdExtMinor,
+ CanLoadAtAddress() ? ", code objects can be placed" : "");
+ if (!CreateCommands()) {
----------------
jhuber6 wrote:
It's supposed to be an optional dependency, maybe I forgot to configure that properly, but figured keeping the check common is fine.
https://github.com/llvm/llvm-project/pull/242445
More information about the llvm-branch-commits
mailing list