Hello,
I am using Fedora 17 and Cuda 5.0 with a GeForce 690. Every time I run cuda-gdb it hangs for about a minute at the first Cuda runtime function (i.e., cudaMalloc(), cudaMemcpy, etc), For example:
[New Thread 0x7ffff6fa8700 (LWP 42361)]
[Context Create of context 0x9c5430 on Device 0]
[Launch of CUDA Kernel 0 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 1 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 2 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 3 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 4 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 5 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 6 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 7 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 8 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 9 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 10 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
[Launch of CUDA Kernel 11 (memset32_aligned1D<<<(1,1,1),(128,1,1)>>>) on Device 0]
(hangs here for 1 minute)
Has anyone seen this before? It is certainly annoying. I have noticed it has something to do with the size of the CUDA code, because if I commented a large portion of it out, the hang seems to disappear (Note: the hang happens before any of this code is hit). Also, the hang happens only once per GPU, so I’m guessing it has something to do with cuda-gdb initializing the GPU for debugginb.