HSA runtime fails to find the symbols for Init and Fini kernels as they mark with internal linkage, changing the linkage to external to fix those errors.
Details
Diff Detail
Event Timeline
Hi @yaxunl It will helpful to know what kind of test is expected to test the linkage type of generated init/fini kernels. The related test-cases for init/fini kernels are added in this patch - https://reviews.llvm.org/D105682
Nit: first line of commit message should be more like [AMDGPU] Change ASAN init/fini kernels to use external linkage (with a capital letter but without a period). And there's no need to repeat this in the body of the commit message. Either leave it blank, or add some text that explains the reason for the change.
Hi, The failures in the debian builds are not related to this patch changes. I don't have a commit access to llvm trunk, could any of you please land this patch on my behalf. Thanks a lot for your time.
I can help commit this patch. Can you please rebase your work with the latest main branch and upload the patch again, @pvellien ? Thanks
error: lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp: No such file or directory
error: test/CodeGen/AMDGPU/lower-ctor-dtor.ll: No such file or directory
error: test/CodeGen/AMDGPU/lower-multiple-ctor-dtor.ll: No such file or directory
These errors were issued again despite llvm-project being up to date on my system. I manually implemented the changes. I am running all tests anyways and will push it once the tests pass.