HIP program with printf call fails to compile with -fsanitize=address option, because of appending module flag - amdgpu_hostcall twice, one for printf and one for sanitize option. This patch fixes that issue.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The testcases related to this patch are already added via this patch https://reviews.llvm.org/D112820.
Comment Actions
@yaxunl It would be very much helpful to know how to write test coverage for this particular patch? thanks
Comment Actions
there is a lit test amdgpu-asan.cu. You can add a call of printf to that test and make sure it compiles.
Comment Actions
I think it will be cleaner to keep the original amdgpu-asan.cu unchanged whereas add amdgpu-asan-printf.cu which tests asan with printf.