Any HIP kernel support?
Any HIP kernel build and source code correlation support on the schedule?
Hi @hgtsoi, RGA version 2.9.1 and later can be used to perform binary analysis of prebuilt HIP Code Objects binary. Given a prebuilt HIP Code Object binary, you should be able to see a breakdown of all kernels in the file and get the disassembly, VGPR pressure and resource usage statistics per kernel. Line correlation support for HIP binaries is on the roadmap as well.
@AmitBM I am trying to analyze code object binary compiled on gfx942 arch but I am getting the following error.
Error: failed to disassemble CodeObject. error: Unknown target id 0x0
I am compiling the HIP file using the following command.
hipcc -g -O3 --offload-arch=gfx942 -std=c++20 -Rpass-analysis=kernel-resource-usage code.hip -o code
Could you provide me the correct compilation command so that I can analyze my binary file using rga?
Hi @AkashKarnatak,
Can you please share the compiled CodeObject?
I was able to make it work. Running the compile command with --save-temps flag generates a code object .o file which rga is able to analyze.
hipcc -g -O3 --offload-arch=gfx942 -std=c++20 -Rpass-analysis=kernel-resource-usage --save-temps code.hip -o code
Thank you.