TotalView User Guide : Part V: Using the CUDA Debugger : CUDA Debugging Tutorial : Starting a TotalView CUDA Session
Starting a TotalView CUDA Session
A standard Linux-x86_64 TotalView installation supports debugging CUDA applications running on both the host and GPU processors. TotalView dynamically detects a CUDA install on your system. To start the TotalView GUI or CLI, provide the name of your CUDA host executable to the totalview or totalviewcli command. For example, to start the TotalView GUI on the sample program, use the following command:
% totalview tx_cuda_matmul
CUDA library loaded: Current API is 3.0 rev 17
...
If TotalView successfully loads the CUDA debugging library, it prints the current API version and revision as shown above.
After reading the symbol table information for the CUDA host executable, TotalView opens the initial process window focused on main in the host code, as shown in Figure 242.
 
Figure 242: Initial process window opened on CUDA host code
You can debug the CUDA host code using the normal TotalView commands and procedures.