Created
January 6, 2018 09:16
-
-
Save onionmk2/a5d8704d6b329bd5af1eb2767b5216fe to your computer and use it in GitHub Desktop.
kill cuda intellisense error. original: https://stackoverflow.com/a/27992604/6430832
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef __CUDACC__ | |
#define KERNEL_ARGS2(numerOfBlocks, threadsPerBlock) <<< numerOfBlocks, threadsPerBlock >>> | |
#define KERNEL_ARGS3(numerOfBlocks, threadsPerBlock, sh_mem) <<< numerOfBlocks, threadsPerBlock, sh_mem >>> | |
#define KERNEL_ARGS4(numerOfBlocks, threadsPerBlock, sh_mem, stream) <<< numerOfBlocks, threadsPerBlock, sh_mem, stream >>> | |
#else | |
#define KERNEL_ARGS2(numerOfBlocks, threadsPerBlock) | |
#define KERNEL_ARGS3(numerOfBlocks, threadsPerBlock, sh_mem) | |
#define KERNEL_ARGS4(numerOfBlocks, threadsPerBlock, sh_mem, stream) | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment