Compiling for Debugging
When compiling a HIP program for debugging, pass the -g option to the compiler for source-level debugging. In addition, the option -O0 turns off all optimizations to better facilitate debugging. For example, to compile the HIP program named tx_hip_matmul for debugging, use the following:
ROCm 5.4:
/opt/rocm-5.4.0/bin/hipcc -O0 -g -o tx_hip_matmul tx_hip_matmul.cpp
Access the source code for this HIP program
tx_hip_matmul at
Sample HIP Program.