[clang] [Clang] Correctly handle UBSan libraries for the GPU (PR #188290)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 25 07:00:36 PDT 2026
jhuber6 wrote:
> >
>
> Thanks, this is super useful! Do we have runtime tests for ASAN and HIP (somewhere)? I mean tests where the instrumented binary is actually executed. If so, could we add some for UBSan? I understand that this is a complex matter, that is why I'm asking if we do for ASAN.
The runtime PR has unit tests, these are run on the GPU and I will ask @jplehr to add `check-compiler-rt` to the buildbot. The UBSan tests are fortunately simple enough that it can be handled entirely on the device.
ASAN is only supported in AMD's fork and would need changes to be pushed upstream. Testing it is much more involved since it specifically needs to track host / device code via interceptors.
https://github.com/llvm/llvm-project/pull/188290
More information about the cfe-commits
mailing list