visual studio 2012 - cuda __launch_bounds__() intellisense error -
i'm using vs2012, cuda 5.5 sdk
once add together __launch_bounds__() kernel, vs intellisense go mad lots of errors incomplete type not allowed
i searched definition in headers, found in "host_defines.h",
#define __launch_bounds__(...) \ __annotate__(launch_bounds(__va_args__)) the compile project working fine, intellisense wrong
edit: illustration of cuda kernel
__global__ void kernel(int* result, int* input){} //fine __global__ void __launch_bounds__(256, 8) kernel(int* result, int* input){} //intellisense error
i've found solution
#ifdef __cudacc__ #define l(x,y) __launch_bounds__(x,y) #else #define l(x,y) #endif __global__ void l(256, 8) kernel(int* result, int* input){} this compiles fine without intellisense problems
visual-studio-2012 cuda intellisense
No comments:
Post a Comment