Hi,

I can't get cuda-gdb to stop at breakpoint. Namely, I get

$ cuda-gdb --args python -m pycuda.debug
/usr/share/doc/python-pycuda-doc/examples/demo.py
NVIDIA (R) CUDA Debugger
5.5 release
Portions Copyright (C) 2007-2013 NVIDIA Corporation
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
(cuda-gdb) b doublify
Function "doublify" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (doublify) pending.
(cuda-gdb) r
Starting program: /usr/bin/python -m pycuda.debug
/usr/share/doc/python-pycuda-doc/examples/demo.py
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
[New Thread 0x7ffff0001700 (LWP 3395)]
[Context Create of context 0xfb38d0 on Device 0]
*** compiler output in /tmp/tmpiHClwv
[Launch of CUDA Kernel 0 (doublify<<<(1,1,1),(4,4,1)>>>) on Device 0]
original array:
[[-0.04012666  0.32504103 -0.35359469 -1.33113611]
 [-0.77782524  1.76319683  1.71368265  1.25119114]
 [ 1.13762009 -1.3670094  -0.31529811 -0.29683253]
 [-0.48716831  0.80230588  1.03378654  2.5838871 ]]
doubled with kernel:
[[-0.08025332  0.65008205 -0.70718938 -2.66227221]
 [-1.55565047  3.52639365  3.4273653   2.50238228]
 [ 2.27524018 -2.7340188  -0.63059622 -0.59366506]
 [-0.97433662  1.60461175  2.06757307  5.1677742 ]]
[Launch of CUDA Kernel 1 (doublify<<<(1,1,1),(4,4,1)>>>) on Device 0]
doubled with InOut:
[[-0.08025332  0.65008205 -0.70718938 -2.66227221]
 [-1.55565047  3.52639365  3.4273653   2.50238228]
 [ 2.27524018 -2.7340188  -0.63059622 -0.59366506]
 [-0.97433662  1.60461175  2.06757307  5.1677742 ]]
*** compiler output in /tmp/tmp_v2lny
[Launch of CUDA Kernel 2 (axpb<<<(1,1,1),(32,1,1)>>>) on Device 0]
original array:
[[ 0.43130487  0.56232756  0.78714377 -0.8899222 ]
 [ 0.12634102 -0.34702763 -0.47055304 -0.35157502]
 [ 0.3904736  -0.70519412 -0.00533707 -1.11191225]
 [ 1.07405782  0.69153821  0.42390665 -0.45493162]]
doubled with gpuarray:
[[ 0.86260974  1.12465513  1.57428753 -1.7798444 ]
 [ 0.25268203 -0.69405526 -0.94110608 -0.70315003]
 [ 0.78094721 -1.41038823 -0.01067414 -2.2238245 ]
 [ 2.14811563  1.38307643  0.84781331 -0.90986323]]
[Context Pop of context 0xfb38d0 on Device 0]
[Context Push of context 0xfb38d0 on Device 0]
[Context Pop of context 0xfb38d0 on Device 0]
[Context Push of context 0xfb38d0 on Device 0]
[Context Pop of context 0xfb38d0 on Device 0]
[Context Push of context 0xfb38d0 on Device 0]
[Context Pop of context 0xfb38d0 on Device 0]
[Context Push of context 0xfb38d0 on Device 0]
[Termination of CUDA Kernel 2 (axpb<<<(1,1,1),(32,1,1)>>>) on Device 0]
[Termination of CUDA Kernel 1 (doublify<<<(1,1,1),(4,4,1)>>>) on Device 0]
[Termination of CUDA Kernel 0 (doublify<<<(1,1,1),(4,4,1)>>>) on Device 0]
[Context Destroy of context 0xfb38d0 on Device 0]
[Thread 0x7ffff0001700 (LWP 3395) exited]

Program exited normally.

I'm using Debian jessie/sid amd64. I have tried both 319.60 and 325.15
drivers (and many other versions previously), and CUDA toolkit 5.0.35
and 5.5.22. No change on this front. I'm using PyCUDA 2013.1.1.

Any ideas?

Regards,
Vedran

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to