Last active
June 26, 2025 09:34
-
-
Save yuxuan-z19/68dfa89137da7fc8c7f8f1dcf2b32b05 to your computer and use it in GitHub Desktop.
VSCode debugger configs for Nsight Visual Studio Code Edition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"configurations": [ | |
{ | |
"name": "Linux", | |
"includePath": [ | |
"${workspaceFolder}/**" | |
], | |
"defines": [], | |
"compilerPath": "/usr/local/cuda/bin/nvcc", | |
"cStandard": "gnu23", | |
"cppStandard": "gnu++23", | |
"intelliSenseMode": "linux-gcc-x64", | |
"compilerArgs": [ | |
"-arch=sm_80" | |
] | |
} | |
], | |
"version": 4 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "CUDA C++: Launch", | |
"type": "cuda-gdb", | |
"request": "launch", | |
"program": "${fileDirname}/${fileBasenameNoExtension}", | |
"preLaunchTask": "C/C++: nvcc build active file" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"tasks": [ | |
{ | |
"type": "cppbuild", | |
"label": "C/C++: nvcc build active file", | |
"command": "/usr/local/cuda/bin/nvcc", | |
"args": [ | |
"-g", | |
"-G", | |
"-arch=sm_80", | |
"${file}", | |
"-o", | |
"${fileDirname}/${fileBasenameNoExtension}" | |
], | |
"options": { | |
"cwd": "${fileDirname}" | |
}, | |
"problemMatcher": [ | |
"$gcc" | |
], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"detail": "Task generated by Debugger." | |
} | |
], | |
"version": "2.0.0" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.json
files under your workspace./vscode
"-arch=sm_80"
flag is specified to enable WMMA)