Overview of Twin Debugging
Ascend C provides the twin debugging method. The same operator code can be used to debug accuracy on the CPU and performance on the NPU. To perform twin debugging, you need to first call the Ascend C class library to compile the kernel source code of the Ascend C operator, compile the kernel source code by using the GCC to generate common binary files on the CPU, and use the GDB debugging tool for debugging. In addition, you need to compile the kernel source code by using the BiSheng compiler to generate binary files on the NPU, and use the simulation dotting or Profiling tool to collect board data for debugging.

Parent topic: Operator Debugging and Tuning