Dear omom omomom,

On Thu, 9 Dec 2010 22:06:59 -0600, omom omomom <[email protected]> wrote:
> I can't run the pycuda debugging example from the wiki. Here is my
> terminal output. I'm tried a million ways to get around this with no
> luck. I'm using the version 2011 code on funtoo. Any suggestions?
> Obviously I'm missing debugging symbols...
> (snip)
> (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 demo.py
> (no debugging symbols found)
> (no debugging symbols found)
> (no debugging symbols found)
> *** compiler output in /tmp/tmpPFVWmp
> original array:
> [[-0.09015208  0.53070694 -1.21539891 -0.62888336]
>  [-0.20481651  0.76166296  0.23542252 -1.32415712]
>  [ 0.17628416  0.38693208  0.58741277 -0.38349622]
>  [-0.49174476 -2.12691116  0.0390339   0.6644516 ]]
> doubled with kernel:
> [[-0.18030417  1.06141388 -2.43079782 -1.25776672]
>  [-0.40963301  1.52332592  0.47084504 -2.64831424]
>  [ 0.35256833  0.77386415  1.17482555 -0.76699245]
> Program exited normally.
> (cuda-gdb)
> 
>  [-0.98348951 -4.25382233  0.0780678   1.3289032 ]]

Below is a transcript of a cuda-gdb session on my machine. What seems
strange is that your cuda-gdb does not print the informational lines

[Launch of CUDA Kernel 0 (doublify) on Device 0]
[Switching to CUDA Kernel 0 (<<<(0,0),(0,0,0)>>>)]

Does you cuda-gdb work on the examples in the CUDA SDK?

Andreas

NVIDIA (R) CUDA Debugger
3.2 release
Portions Copyright (C) 2008-2010 NVIDIA Corporation
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/lib/libthread_db.so.1".
(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: /home/andreas/src/env/bin/python -m pycuda.debug demo.py
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New process 3798]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[New Thread 140657101080320 (LWP 3798)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
*** compiler output in /tmp/tmphpYu64
Breakpoint 2 at 0xe7fd80: file kernel.cu, line 6.
Pending breakpoint "doublify" resolved
[Launch of CUDA Kernel 0 (doublify) on Device 0]
[Switching to CUDA Kernel 0 (<<<(0,0),(0,0,0)>>>)]

Breakpoint 2, doublify<<<(1,1),(4,4,1)>>> (a=0x100000) at kernel.cu:6
6             int idx = threadIdx.x + threadIdx.y*4;
Current language:  auto; currently c++
(cuda-gdb) 

Attachment: pgplPkXCWVrHH.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to