cuda-gdb does not work in debugging Multi files?

I got a problem on debugging the code with cuda-gdb.

When the code is just in one file, cuda-gdb works as I want to break :
(cuda-gdb) break mykernel

But when the code is cover many files, that I mean the “mykernel” function is not in the same file as “main” function,
using the same break instruction above, then it turn out:
Function “mykernel” not defined.
Make breakpoint pending on future shared library load? (y or [n])

though I input “y”, when debuging it doesn’t break as I want!

On the other hand, I try to step from outside calling functions, but when I got into “mykernel”, it was not the profile as before,
I could not print any var information.

Can somebody help me??

What CUDA version are you using? I had trouble with this in 3.0, but it is working now in 3.1. I do get the shared libray load question (and say yes) and it sucessfully breaks in my kernel. Though, I haven’t set breakpoints based on the kernel name, only File:line breakpoints.

What CUDA version are you using? I had trouble with this in 3.0, but it is working now in 3.1. I do get the shared libray load question (and say yes) and it sucessfully breaks in my kernel. Though, I haven’t set breakpoints based on the kernel name, only File:line breakpoints.