Skip to content

Instantly share code, notes, and snippets.

@raytroop
Last active August 23, 2018 03:19
Show Gist options
  • Save raytroop/a8012509f8ef6b3a3b9aa4f47b354aea to your computer and use it in GitHub Desktop.
Save raytroop/a8012509f8ef6b3a3b9aa4f47b354aea to your computer and use it in GitHub Desktop.
dummy header for cuda vscode
#pragma once
#ifdef __INTELLISENSE__
void __syncthreads();
#define KERNEL_ARG2(grid, block)
#define KERNEL_ARG3(grid, block, sh_mem)
#define KERNEL_ARG4(grid, block, sh_mem, stream)
#else
#define KERNEL_ARG2(grid, block) <<< grid, block >>>
#define KERNEL_ARG3(grid, block, sh_mem) <<< grid, block, sh_mem >>>
#define KERNEL_ARG4(grid, block, sh_mem, stream) <<< grid, block, sh_mem, stream >>>
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment