Hello, I started using pycuda with cuda-gdb to debug a project im currently working on. I cant seem to get any backtrace/source. Is there a way to tell pycuda to compile with debug symbols?
$> cuda-gdb --args python -m pycuda.debug <project.py> > (cuda-gdb) set cuda memcheck on > (cuda-gdb) run > <program output> > [Launch of CUDA Kernel 80 (ola_Kernel_test<<<(37,37,1),(16,16,1)>>>) on > Device 0] > Program received signal CUDA_EXCEPTION_1, Lane Illegal Address. > [Switching focus to CUDA kernel 80, grid 81, block (0,33,0), thread > (0,12,0), device 0, sm 4, warp 14, lane 0] > 0x0000000003780250 in ola_Kernel_test<<<(37,37,1),(16,16,1)>>> () > (cuda-gdb) bt > #0 0x0000000003780250 in ola_Kernel_test<<<(37,37,1),(16,16,1)>>> () > (cuda-gdb) Also interestingly when I put a break point at the kernel it will give me the wrong file name with the correct line number (cuda-gdb) break ola_Kernel_test > Breakpoint 1 at 0x2987870: file kernel.cu, line 297. (20 locations) > (cuda-gdb) kernel.cu contains no "ola_Kernel_test" but gputools.cu does at line 297 So it must have some notion of the source. Any suggestions? Thanks, Matthias -- Matthias Lee SDSS/Johns Hopkins University Performance @ Rational/IBM [email protected] [email protected] (320) 496 6293 To know recursion, you must first know recursion.
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
