I am trying to debug my CUDA code on a remote server using VSCode from my local machine. The server has Ubuntu 18.04 os, two Quadro RTX 6000 GPUs, dirver version 455.45.01 and CUDA 11.1.
My task.json file is the following
{
"version": "2.0.0",
"tasks": [
{
"label": "CUDA",
"type": "shell",
"command": "make dbg=1",
"problemMatcher": ["$nvcc"],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
My launch.json file is the following:
{
"version": "0.2.0",
"configurations": [
{
"name": "CUDA C++: Launch",
"type": "cuda-gdb",
"request": "launch",
"program": "${workspaceFolder}/test.cu"
}
]
}
When I pressed F5 for debugging, an error occurs which says “Not in executable format: file format not recognized”. How do I resolve this issue? Thanks!