[llvm] [AMDGPU] Emit AMDHSA kernel descriptors to `.amdhsa.kd` section (PR #122930)

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 12 10:37:09 PST 2025


jhuber6 wrote:

> Thanks @jhuber6! I patched this and confirmed it works for my usage (#119479). Looks like the test failures here were unrelated and it's ok to land?

Sorry this one got away from me, it seems that this influences something weird inside of HSA. The actual metadata lookup that gets these sections works fine, but then it has issues when it tries to launch the kernel. I don't think there's a way to solve this in a reasonable amount of time with the cycles I have as it will likely require updating the runtime. We might need to do what was suggested prior and just emit some dummy relocations for these, or just mark the entire data section as `GNU_RETAIN`.

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


More information about the llvm-commits mailing list