I’m trying to run the example debug application matrixMul from the documentation Getting Started with the CUDA Debugger :: NVIDIA Nsight VSCE Documentation
When I run the launch task as described in the document I do not hit any breakpoints and instead get the following error in the debug console.
[New Thread 0x7fffefa78000 (LWP 1221608)]
The CUDA driver has hit an internal error.
Error code: 0x1012400000001c
Further execution or debugging is unreliable.
Please ensure that your temporary directory is mounted with write and exec permissions.
The program hangs and never returns after launching the debugger in vscode.
Running the same example exectuable matrixMul runs fine when not trying to debug the kernel code in vscode.
I am running on debian 11 and have CUDA 12 and driver 525.60.13 which should be compatible from the documentation.
Im running this on a laptop with the following GPU
product: GA106M [GeForce RTX 3060 Mobile / Max-Q] [10DE:2520]
I tried the suggestion of changing the $TMPDIR to a location with write access by adding a envFile in the launch.json configuration from this issue. This did not have any affect. My launch.json is below and I added a file
vscode_var_env.env with TMPDIR=~/Documents/projects/neural_nets/cuda-samples/tmp
{
"configurations": [
{
"name": "CUDA C++: Launch",
"type": "cuda-gdb",
"request": "launch",
"program": "${workspaceFolder}/matrixMul",
"envFile": "${workspaceFolder}/vscode_var_env.env",
}
]
}
What else can I try to get cuda-gdb debugging working in vscode to debug kernel code?