Starting a TotalView CUDA Session
A standard 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
If TotalView successfully loads the CUDA debugging library, it prints to the log the current CUDA debugger API version and the NVIDIA driver version:
CUDA library loaded: Current DLL API version is “8.0.128”; NVIDIA driver version 384.125
...
After reading the symbol table information for the CUDA host executable, TotalView opens the Source view focused on main in the host code, as shown in Figure 124.
Figure 124, Source view opened on CUDA host code
You can debug the CUDA host code using the normal TotalView commands and procedures.