Skip to content

Instantly share code, notes, and snippets.

@yuxuan-z19
Last active June 26, 2025 09:34
Show Gist options
  • Select an option

  • Save yuxuan-z19/68dfa89137da7fc8c7f8f1dcf2b32b05 to your computer and use it in GitHub Desktop.

Select an option

Save yuxuan-z19/68dfa89137da7fc8c7f8f1dcf2b32b05 to your computer and use it in GitHub Desktop.

Revisions

  1. yuxuan-z19 revised this gist Jun 26, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions tasks.json
    Original file line number Diff line number Diff line change
    @@ -7,6 +7,7 @@
    "args": [
    "-g",
    "-G",
    "-arch=sm_80",
    "${file}",
    "-o",
    "${fileDirname}/${fileBasenameNoExtension}"
  2. yuxuan-z19 revised this gist Jun 26, 2025. 1 changed file with 19 additions and 0 deletions.
    19 changes: 19 additions & 0 deletions c_cpp_properties.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    {
    "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
    }
  3. yuxuan-z19 revised this gist Jun 26, 2025. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion tasks.json
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,6 @@
    "args": [
    "-g",
    "-G",
    "-arch=sm_80",
    "${file}",
    "-o",
    "${fileDirname}/${fileBasenameNoExtension}"
  4. yuxuan-z19 revised this gist Jun 26, 2025. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion tasks.json
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,6 @@
    "args": [
    "-g",
    "-G",
    "-lineinfo",
    "-arch=sm_80",
    "${file}",
    "-o",
  5. yuxuan-z19 revised this gist Jun 26, 2025. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions tasks.json
    Original file line number Diff line number Diff line change
    @@ -6,6 +6,9 @@
    "command": "/usr/local/cuda/bin/nvcc",
    "args": [
    "-g",
    "-G",
    "-lineinfo",
    "-arch=sm_80",
    "${file}",
    "-o",
    "${fileDirname}/${fileBasenameNoExtension}"
  6. yuxuan-z19 revised this gist Jun 26, 2025. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion #VSCode CUDA debugger configs
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    s
  7. yuxuan-z19 created this gist Jun 26, 2025.
    1 change: 1 addition & 0 deletions #VSCode CUDA debugger configs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    s
    12 changes: 12 additions & 0 deletions launch.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    {
    "version": "0.2.0",
    "configurations": [
    {
    "name": "CUDA C++: Launch",
    "type": "cuda-gdb",
    "request": "launch",
    "program": "${fileDirname}/${fileBasenameNoExtension}",
    "preLaunchTask": "C/C++: nvcc build active file"
    }
    ]
    }
    27 changes: 27 additions & 0 deletions tasks.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    {
    "tasks": [
    {
    "type": "cppbuild",
    "label": "C/C++: nvcc build active file",
    "command": "/usr/local/cuda/bin/nvcc",
    "args": [
    "-g",
    "${file}",
    "-o",
    "${fileDirname}/${fileBasenameNoExtension}"
    ],
    "options": {
    "cwd": "${fileDirname}"
    },
    "problemMatcher": [
    "$gcc"
    ],
    "group": {
    "kind": "build",
    "isDefault": true
    },
    "detail": "Task generated by Debugger."
    }
    ],
    "version": "2.0.0"
    }