Download CUDA-GDB (NVIDIA CUDA Debugger)
Transcript
Chapter 04 : CUDA- GDB WALK- THROUGH
$7 = {0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208}
(cuda-gdb) p/x array[0]@12
$8 = {0x0, 0x80, 0x40, 0xc0, 0x20, 0xa0, 0x60, 0xe0, 0x10, 0x90, 0x50,
0xd0}
(cuda-gdb) p &data
$9 = (@global void * @parameter *) 0x10
(cuda-gdb) p *(@global void * @parameter *) 0x10
$10 = (@global void * @parameter) 0x100000
This verifies thread (170,0,0) is working on the correct data (170). 11 Delete the breakpoints and continue the program to completion:
(cuda-gdb) delete b
Delete all breakpoints? (y or n) y
(cuda-gdb) continue
Continuing.
Program exited normally.
(cuda-gdb)
This concludes the cuda‐gdb walkthrough.
CUDA-GDB (NVIDIA CUDA Debugger)
DU-05227-001_V3.1 | 19