diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-30 16:06:22 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-08-30 16:06:22 +0100 |
| commit | f1eabbaa1b4ff1836d0ee8335b31d009203f3775 (patch) | |
| tree | bbe77eacaef8ab8a5999e517c3006973c9e3e44c /snippets/cuda.snippets | |
| parent | 823302458ec6c53455a3f34674415c43ce6a3187 (diff) | |
fixed zathura integration with texlab using nvim-texlabconfig
Diffstat (limited to 'snippets/cuda.snippets')
| -rw-r--r-- | snippets/cuda.snippets | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/snippets/cuda.snippets b/snippets/cuda.snippets deleted file mode 100644 index 2fc1921..0000000 --- a/snippets/cuda.snippets +++ /dev/null @@ -1,59 +0,0 @@ -extends cpp - -snippet kern "Kernel definition" - __global__ void ${1:kernel}(${2:void}) { - ${0:// TODO: Implement} - } - -snippet dev "Device function definition" - __device__ ${1:int} ${2:foo}(${3:void}) { - ${0:// TODO: Implement} - return 0; - } - -snippet call "Kernel call" - ${1:kernel}<<<${2:args}>>>(${3});${0} - -snippet sync "Synchonize threads" - __syncthreads(); - -snippet tid "Thread Index" - threadIdx.${0} - -snippet bid "Block Index" - blockIdx.${0} - -snippet bdim "Block Dimension" - blockDim.${0} - -snippet ii "Get current index (1D)" - int ${1:index} = threadIdx.${2:x} + blockIdx.$2 * blockDim.$2; - -snippet ix "Get current X index (1D)" - int ${1:x} = threadIdx.x + blockIdx.x * blockDim.x; - -snippet iy "Get current Y index (1D)" - int ${1:y} = threadIdx.y + blockIdx.y * blockDim.y; - -snippet iz "Get current Z index (1D)" - int ${1:z} = threadIdx.z + blockIdx.z * blockDim.z; - -snippet ixy "Get current X,Y index (2D)" - int ${1:x} = threadIdx.x + blockIdx.x * blockDim.x; - int ${2:y} = threadIdx.y + blockIdx.y * blockDim.y; - -snippet ixz "Get current X,Z index (2D)" - int ${1:x} = threadIdx.x + blockIdx.x * blockDim.x; - int ${3:z} = threadIdx.z + blockIdx.z * blockDim.z; - -snippet iyz "Get current Y,Z index (2D)" - int ${2:y} = threadIdx.y + blockIdx.y * blockDim.y; - int ${3:z} = threadIdx.z + blockIdx.z * blockDim.z; - -snippet ixyz "Get current X,Y,Z index (3D)" - int ${1:x} = threadIdx.x + blockIdx.x * blockDim.x; - int ${2:y} = threadIdx.y + blockIdx.y * blockDim.y; - int ${3:z} = threadIdx.z + blockIdx.z * blockDim.z; - -snippet share "Shared memory declaration" - __shared__ ${1:int} ${2:memo}[${3:SIZE}];${0} |
