CUDA Snippets
snippets for cuda c++
Details
Installs
- Total 5K
- Win 2K
- Mac 776
- Linux 2K
Sep 13 | Sep 12 | Sep 11 | Sep 10 | Sep 9 | Sep 8 | Sep 7 | Sep 6 | Sep 5 | Sep 4 | Sep 3 | Sep 2 | Sep 1 | Aug 31 | Aug 30 | Aug 29 | Aug 28 | Aug 27 | Aug 26 | Aug 25 | Aug 24 | Aug 23 | Aug 22 | Aug 21 | Aug 20 | Aug 19 | Aug 18 | Aug 17 | Aug 16 | Aug 15 | Aug 14 | Aug 13 | Aug 12 | Aug 11 | Aug 10 | Aug 9 | Aug 8 | Aug 7 | Aug 6 | Aug 5 | Aug 4 | Aug 3 | Aug 2 | Aug 1 | Jul 31 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 | 0 | 2 | 1 | 1 | 0 | 1 | 0 | 0 | 0 |
Linux | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 2 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
CUDA-Sublime-Text-Snippets
This package adds some CUDA functions snippets for Sublime Text.
Installation
Package Control (recommended)
The easiest way to install the CUDA Snippets is by using Package Control.
- Open Package Control (or hit Ctrl+Shift+P or Cmd+Shift+P)
- Type install and hit enter
- Type CUDA Snippets and hit enter again
Cloning the Repository
You can manually install the package by using Git.
- Navigate to Sublime’s Packages directory
- Run git clone https://github.com/LitLeo/CUDA-Sublime-Text-Snippets
To find out where the Packages directory is, you can go to Preferences and Browse packages…. This will open the directory in your file explorer.
Downloading the Archive
If you don’t have Package Control or Git, you can also download the package. However you really should be using Package Control, because the process is simpler.
- Open https://github.com/LitLeo/CUDA-Sublime-Text-Snippets in your browser
- On the right hand side there is a Download ZIP button – click it
- Go to Preferences and Browse packages… which opens the Packages directory
Problem
CUDA code is almost the same as C++ code, but I cann't use c++ packages, such as C++ sinppets, in CUDA C++ files. https://forum.sublimetext.com/t/how-to-enable-c-sublime-package-in-cuda-files-cu-cuh/19014
The Temporary Solution: Add several frequently-used c++ snippets.
Changed Snippets: Remove function note and semicolon(;) of all snippets. - Extract the archive inside the Packages directory
History
v1.1.1
Before: cudaFree(void* devPtr); /Frees memory on the device./
Now cudaFree(void* devPtr)
v1.2.0
New Snippets: Add keywords snippets, such as
global host forceinline managesharedd dim3 char2 char4 ……
Thanks