ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

CUDA Snippets

by LitLeo ST2/ST3

snippets for cuda c++

Details

Installs

  • Total 1K
  • Win 496
  • OS X 228
  • Linux 578
Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 0 3 3 0 0 0 1 1 3 0 2 0 0 0 0 0 1 0 4 1 0 1 2 1 0 1 2 2 2 4 2 2 3 1 2 1 2 0 0 2 0 0 1 2 1 1
OS X 0 1 0 0 0 0 0 1 2 1 0 0 0 0 0 0 1 0 0 0 0 1 0 1 1 1 0 1 1 4 0 0 1 1 1 0 0 0 0 2 1 0 0 0 0 2
Linux 1 1 6 1 3 0 2 0 3 2 3 2 1 3 1 2 3 1 3 1 3 5 4 1 0 1 1 1 3 1 5 0 2 3 2 2 2 0 0 1 1 2 0 3 1 1

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.

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.

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