Starting a TotalView ROCm Session
A standard TotalView installation supports debugging HIP applications running on both the host and GPU processors. TotalView dynamically detects a ROCm installation on your system. To start the TotalView GUI or CLI, provide the name of your ROCm host executable to the totalview or totalviewcli command. For example, to start the TotalView UI on the sample program, use the following command:
% totalview tx_hip_matmul
If TotalView successfully loads the HIP debugging library, it prints to the log the current ROCm debugger API version (ROCdbgapi) and the ROCm driver version:
ROCm debug library loaded: Current DLL API version is "0.68.0" (build "0.68.0-rocm-rel-5.4-72")
...
After reading the symbol table information for the GPU host executable, TotalView opens the Source view focused on main in the host code, as shown in
Figure 154.
You can debug the GPU host code using the normal TotalView commands and procedures.