[clang] [OpenMP][ASan] Enable ASan Instrumentation for AMDGPUOpenMPToolChain. (PR #124754)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 28 07:40:55 PST 2025


jhuber6 wrote:

> I'm not sure I follow the question exactly, but in my opinion it does not make sense to independently control instrumentation for host and device. We had to implement a means to control instrumentation on the device when development started and after we changed its default once development was complete we kept the option just in case.

I'm referring  to the fact that for a normal compile, if the user passes `-fsanitize=address`, should that enable it for both the host and device? My argument is that the user is capable of passing something like `-Xarch_host -fsanitize=undefined -Xarch_device -fsanitize=address` if they want fine-grained control, or don't want it on the CPU but want it on the CPU and vice-versa. This patch adds `-fanitize-gpu` which is a completely separate option that only works in this single case.

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


More information about the cfe-commits mailing list