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

CUDA Snippets

by LitLeo ALL

snippets for cuda c++

Details

Installs

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

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