Added support for CUDA through extension map#588
Merged
Conversation
| ".vsh": "v run", | ||
| ".sass": "sass --style expanded" | ||
| ".sass": "sass --style expanded", | ||
| ".cu": "cd $dir && nvcc $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt" |
Owner
Contributor
Author
There was a problem hiding this comment.
Right. I do not have a macOS to test this, I don't even know if its common, as not current Mac comes with Nvidia GPU that is mandatory for CUDA programming.
For Windows I'm trying to test it, but CUDA is not officially supported on vscode for Windows, that's why I only tried on Linux. It needs Visual Studio IDE installed to work apparently.
I'll install it and try, but you suggestions seems to work. I did not remembered that for windows its .\ and for Linux its ./
Contributor
Author
There was a problem hiding this comment.
Ok, just tried. It works $dir$fileNameWithoutExt on both Linux and Mac
Owner
|
Thanks @Helderjfl ! |
ericchase
pushed a commit
to ericchase/vsce--code-runner-fork
that referenced
this pull request
Aug 22, 2025
* Added support for CUDA through extension map * Modified to run CUDA on Linux and Windows
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

I added support to run CUDA programs.