Download CUDA-GDB
Transcript
TABLE OF CONTENTS Current Focus....................................................................... 13 Switching Focus .................................................................... 14 6 Program Execution.................................................................15 Interrupting the Application...................................................... 15 Single-Stepping ..................................................................... 15 7 Breakpoints .........................................................................17 Symbolic Breakpoints.............................................................. 17 Line Breakpoints ................................................................... 18 Address Breakpoints ............................................................... 18 Kernel Entry Breakpoints ......................................................... 18 Conditional Breakpoints........................................................... 19 8 Inspecting Program State .........................................................20 Memory and Variables ............................................................. 20 Variable Storage and Accessibility............................................... 20 Inspecting Textures ................................................................ 21 Info CUDA Commands ............................................................. 22 info cuda devices ............................................................... 22 info cuda sms .................................................................... 23 info cuda warps ................................................................. 23 info cuda lanes .................................................................. 24 info cuda kernels ............................................................... 24 info cuda blocks................................................................. 25 info cuda threads ............................................................... 26 9 Context and Kernel Events......................................................27 Display CUDA context events..................................................... 27 Display CUDA kernel events ...................................................... 27 Examples of displayed events .................................................... 28 10 Checking Memory Errors .......................................................29 Checking Memory Errors .......................................................... 29 Increasing the Precision of Memory Errors WIth Autostep ................... 30 Usage ............................................................................. 30 Graphics Driver CUDA-GDB DU-05227-042_v01 | ii