Im not sure why pucuda.autoinit does what it does .. but a note about
cuda-gdb on linux. You cannot debug cuda on a gpu being used for X11
display. The ways that I have successfully debugged code is either
with X11 down or remotely (using ssh) . The cuda-gdb manual also
allows you to debug with the second GPU while the first is used for
X11 down. I believe that is what is working for you

Regards

Nithin

On 6 March 2011 10:44, Lev Givon <[email protected]> wrote:
> I have a 64-bit Linux system that contains two GPUs. Device #0 is a
> GTX 460, while device #1 is a GeForce 9300. When I attempt to run a
> PyCUDA program such as
>
> import pycuda.autoinit
> print pycuda.autoinit.device.name()
> print pycuda.autoinit.device.count()
>
> in cuda-gdb via
>
> cuda-gdb --args python -m pycuda.debug test.py
>
> I obtain the following output:
>
> (cuda-gdb) r
> Starting program: /usr/bin/python -m pycuda.debug test.py
> [Thread debugging using libthread_db enabled]
> [New process 9632]
> [New Thread 47944755071776 (LWP 9632)]
> GeForce 9300 / nForce 730i
> 1
>
> Program exited normally.
>
> When I run the program from the command line, I obtain
>
> GeForce GTX 460
> 2
>
> Why does pycuda.autoinit not detect the first device when I run the
> program from within cuda-gdb?
>
> I'm using PyCUDA 0.94.2 and CUDA 3.2.
>
>                                                L.G.
>
>
> _______________________________________________
> PyCUDA mailing list
> [email protected]
> http://lists.tiker.net/listinfo/pycuda
>

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

Reply via email to