[compiler-rt] [llvm] [UBSan][AMDGPU] Report minimal-runtime diagnostics with symbolization (PR #204705)

Yaxun Liu via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 19 14:56:45 PDT 2026


================
@@ -238,6 +248,10 @@ Error RPCServerTy::initDevice(plugin::GenericDeviceTy &Device,
           Handler.getGlobalMetadataFromDevice(Device, Image, ClientGlobal))
     return Err;
 
+  // Cache the device address so sanitizer reports can be rebased after the
+  // image has been unloaded from the device.
+  Device.RPCClientBaseAddr = reinterpret_cast<uintptr_t>(ClientGlobal.getPtr());
----------------
yxsamliu wrote:

If OpenMP guarantees there is only one RPC-enabled image loaded per `GenericDeviceTy`, then the device-wide `RPCClientBaseAddr` is probably fine. My concern is only for the case where the same device can have multiple loaded images; in that case this address looks image-specific and would need to be stored with the image.

https://github.com/llvm/llvm-project/pull/204705


More information about the llvm-commits mailing list