Closed AtomicVar closed 2 years ago
I CAN use cuda-gdb on command line without any trouble. But when I use the Debug button on VS Code, It shows that:
cuda-gdb
Error while creating variable object for watch: Error: Python not initialized
on the cuda-gdb inside of VS Code.
Here's my launch.json:
launch.json
{ "version": "0.2.0", "configurations": [ { "name": "CUDA C++: Launch", "type": "cuda-gdb", "request": "launch", "program": "${fileDirname}/main_gpu" } ] }
It seems like the bug is fixed in cuda-gdb 11.5+. After installing the latest cuda-gdb using conda:
$ conda install -c nvidia cuda-gdb
The problem is solved.
I CAN use
cuda-gdb
on command line without any trouble. But when I use the Debug button on VS Code, It shows that:on the cuda-gdb inside of VS Code.
Here's my
launch.json
: