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

CUDA Snippets

by LitLeo ALL

snippets for cuda c++

Details

Installs

  • Total 5K
  • Win 2K
  • Mac 781
  • Linux 2K
Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8
Windows 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 1 0 1 0 0 2 0 0 1 0 0 1 0 0 0
Mac 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 1 0 0 1 0 2 1 0 1 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 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.

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