Python Exception <type 'exceptions.AttributeError'> 'gdb.Type' object has no attribute 'name'

I get Python errors when I run cuda-gdb on my code. It is due to cuda-gdb picking up pretty-printers from my system gdb and there is a version mismatch. My versions are as follows:

$ dpkg -l | grep gdb
ii gdb 7.11.1-0ubuntu1~16.04 amd64 GNU Debugger
ii nvidia-cuda-gdb 7.5.18-0ubuntu1 amd64 NVIDIA CUDA Debugger (GDB)

cuda-gdb should install and use its own Python modules, instead of the system installed ones.

[Edit: reported as bug 1877414]

I am getting something very similiar is this issue solved?

The bug I reported is still in open state without any comment from Nvidia. / kalvdans

Do you have any workaround? uninstall all the other GDBs?

No, sorry. I did printf debugging for a while but eventually switched to OpenCL.

Hi,

Can you update to the latest cuda toolkit to check if issue has resolved ?

Using cuda-gdb 10.1 did seem to solve this problem for me.