Rate This Document
Findability
Accuracy
Completeness
Readability

Compiler and Debugger

The Compiler and Debugger allows you to deploy Kunpeng compilers in one click and debug GPU-based applications in a single-node system. It leverages CUDA-GDB debugging to debug GPU-based applications on a unified page. It also supports parallel debugging of applications on multiple nodes in HPC scenarios and remote compilation and debugging on the Kunpeng platform. It can debug code written in C, C++, or Fortran. The Compiler and Debugger performs the following functions:

  • One-click deployment of Kunpeng compilers (GCC for openEuler, BiSheng Compiler, and BiSheng JDK)
  • Visualized configuration of compilation and debugging parameters and one-click code compilation, execution, and debugging
  • Remote, single-step debugging of C/C++ code
  • Real-time interaction of the compilation and debugging information
  • Source and assembly code debugging of CUDA applications
  • Source and assembly code debugging of HPC applications, display of historical communication group details, and stack switchover
Figure 1 Compiler and Debugger

General Application Debugging

General application debugging offers remote debugging capabilities on the Kunpeng platform, featuring a graphical user interface (GUI) that significantly improves debugging efficiency.

  1. Set parameters of general application debugging. See Figure 2.
    Figure 2 Parameters of general application debugging
  2. Debug a general application. See Figure 3. You can set breakpoints, perform single-step debugging, and view variables and registers.
    Figure 3 General application debugging

Parallel HPC Application Debugging

The Compiler and Debugger supports parallel debugging on multiple nodes in HPC scenarios. MPI applications can only be debugged in launch mode.

  1. Set parameters of parallel HPC application debugging. See Figure 4.
    Figure 4 Parameters of parallel HPC application debugging
  2. Debug parallel HPC applications. See Figure 5.
    Figure 5 Parallel HPC application debugging
  3. The rank and communication group information is displayed in the lower left corner of the screen. Click to view the communication subgroup changes, change details, and deadlocks. See Figure 6.
    Figure 6 Viewing details

CUDA Application Debugging

The Compiler and Debugger allows you to debug Compute Unified Device Architecture (CUDA) programs on the Kunpeng platform. It leverages CUDA-GDB to debug GPU applications on a unified UI.

  1. Set parameters of CUDA application debugging. See Figure 7.
    Figure 7 Parameters of CUDA application debugging
  2. Debug a CUDA application. See Figure 8. You can view the KERNEL THREADS and INFO CUDA information under the source code area.
    Figure 8 CUDA application debugging

Security Application Debugging

  1. Set parameters of security application debugging. See Figure 9.
    Figure 9 Parameters of security application debugging
  2. View the tee.log file to check the debugging result. See Figure 10.
    Figure 10 Log file