Directly pick from the attach (after running sudo echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope), nothing comes up on the Debug Console tab: I have managed to compile my code with debugging flags, and is successful in able to break at the device code of the kernel (And switch focus to different block/thread for e.g.), thanks to this thread:, So I know that my cuda object files have debugging symbols and should be doable in theory.īut I have since tried several ways to invoke the breakpoint in VSCode without success, I have tried the following in my launch.json configuration:ġ. I have followed the VSCode Nsight tutorial before for debugging CUDA code compiled as executable in VSCode, but I need to run this as an exported linked library from python (via Cython interface) Hi there, I am using this plugin for the purpose of launching debugging CUDA code launched by python scripts in VSCode Within the tasks.json this can be done like the following: Single file programs (like most examples presented here on the web site) can be compiled directly with nvcc without the need of more complex build systems. Either choose directly “open tasks.json” or any of the other configure options should generate/open the file. To open it if it doesn’t exist goto “Terminal -> Configure Tasks”. vscode folder of your project root folder. A new task can be added in the file tasks.json which is located in the. There is nothing pre-built into VSCode for CUDA at the time of writing this. Independent of how big a project is, we always have to create a new task for it in VSCode so that it knows what to do with our CUDA code. Nsight Visual Studio Code Edition: Nvidia debugging and development tools like cuda-gdb integration, proper CUDA syntax highlighting, breakpoints inside kernels, etc.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |