Skip to content

Added support for CUDA through extension map#588

Merged
formulahendry merged 2 commits into
formulahendry:masterfrom
Helderjfl:cuda-support
Mar 11, 2020
Merged

Added support for CUDA through extension map#588
formulahendry merged 2 commits into
formulahendry:masterfrom
Helderjfl:cuda-support

Conversation

@Helderjfl
Copy link
Copy Markdown
Contributor

I added support to run CUDA programs.

Comment thread package.json Outdated
".vsh": "v run",
".sass": "sass --style expanded"
".sass": "sass --style expanded",
".cu": "cd $dir && nvcc $fileName -o $fileNameWithoutExt && ./$fileNameWithoutExt"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Windows, the ./$fileNameWithoutExt would not work in CMD.

image

So we may need to use $dir$fileNameWithoutExt.

Please help test it on macOS, Linux and Windows. Thanks a lot!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 ./

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, just tried. It works $dir$fileNameWithoutExt on both Linux and Mac

@formulahendry formulahendry merged commit ab58f78 into formulahendry:master Mar 11, 2020
@formulahendry
Copy link
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants