Download CUDA-GDB: The NVIDIA CUDA Debugger
Transcript
Table of Contents Chapter 1. Introduction ................................................................................... 1 1.1 CUDA-GDB: The NVIDIA CUDA Debugger .................................................... 1 1.2 Document’s Structure ................................................................................. 1 Chapter 2. Installation Instructions ................................................................ 3 2.1 Installing CUDA-GDB................................................................................... 3 Chapter 3. Debug Compilation ......................................................................... 5 3.1 Compiling CUDA applications with debugging support.................................... 5 Chapter 4. CUDA-GDB Features and Extensions .............................................. 7 4.1 Realtime debugging of a CUDA application on GPU hardware ......................... 7 4.2 An extension to the GDB debugging environment.......................................... 7 4.3 Pause CUDA execution at any function symbol or source file line number ........ 7 4.4 Single-step individual warps ........................................................................ 8 4.5 Display device memory in the device kernel .................................................. 8 4.6 Switch to any CUDA block/thread................................................................. 8 4.7 Display CUDA blocks/threads ....................................................................... 9 4.8 Display CUDA state information ................................................................... 9 4.9 Breaking into running applications.............................................................. 10 4.10 Initialization File .................................................................................... 10 Chapter 5. CUDA-GDB Walkthrough .............................................................. 11 5.1 Sample CUDA application .......................................................................... 11 5.2 Sample CUDA-GDB session........................................................................ 12 Appendix A. Technical Specifications............................................................. 15 A.1 CUDA-GDB Supported Platforms ................................................................ 15 A.1.1 Host Platform Requirements ............................................................... 15 A.1.2 GPU Requirements ............................................................................. 15 Appendix B. Known Issues............................................................................. 17 B.1 Known Issues........................................................................................... 17 CUDA Debugger User Manual Version 2.1 Beta iii