(cuda-gdb) thread
[Current Thread 2 (Thread 140272898447104 (LWP 28681))]
[Current CUDA Thread <<<(0,0),(0,0,0)>>>]
(cuda-gdb) thread <<<(9),(10)>>>
Switching to <<<(9,0),(10,0,0)>>> 0x000000000246a5c8 in my_kernel
<<<(16,1),(128,1,1)>>> ...
(cuda-gdb) thread
[Current Thread 2 (Thread 140272898447104 (LWP 28681))]
[Current CUDA Thread <<<(0,0),(0,0,0)>>>]
(cuda-gdb) thread <<<(9,0),(10,0,0)>>>
Switching to <<<(9,0),(10,0,0)>>> 0x000000000246a5c8 in my_kernel
<<<(16,1),(128,1,1)>>> ...
(cuda-gdb) thread
[Current Thread 2 (Thread 140272898447104 (LWP 28681))]
[Current CUDA Thread <<<(0,0),(0,0,0)>>>]
(cuda-gdb) thread <<<20>>>
Switching to <<<(0,0),(20,0,0)>>> 0x000000000246a5c8 in my_kernel
<<<(16,1),(128,1,1)>>> ...
(cuda-gdb) thread
[Current Thread 2 (Thread 140272898447104 (LWP 28681))]
[Current CUDA Thread <<<(0,0),(20,0,0)>>>]
In the above session, I was unable to switch the block focus. You can see that I /was/ able to switch the thread focus within the current block (block 0). Am I doing something wrong?
(I’m using cuda 3.0, but I can’t upgrade to 3.2 - I’m used to hearing “upgrade to 3.2” and then radio silence. Is this a known issue in 3.0 that was solved in 3.2? If so, please let me know and that’s fine and it’s my loss. If not, any help with the actual issue would be greatly appreciated).
— edit —
The cuda-gdb user manual for 3.0 describes different commands and syntax for focus switching, and I tried this as well…
(cuda-gdb) cuda block
Current CUDA focus: block (0,0).
(cuda-gdb) cuda block (9,0)
CUDA focus unchanged.
cuda thread (9,0,0)
New CUDA focus: device 0, sm 1, warp 0, lane 9, grid 42672, block (0,0), thread (9,0,0).
Jeff
cuda 3.0
ubuntu 9.04
gtx 480