Hi, I’m using the Jan15 version of cuda sdk0.8.

I read nvcc.pdf, use cmd line “nvcc mykernel.cu -ptx” to get .ptx to see what’s going on with my kernle.

I got error:

could not open source file “cutil.h”

#include “cutil.h”

^

but “cutil.h” should be found, actually I can run mykernel.cu. anyway, i copied a cutil.h into the same folder with mykernel.cu.

then tried again, getting below errors i don’t know:

tmp_00000110-8.i

D:\CUDA\bin../include\device_functions.h(205) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\device_functions.h(205) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\device_functions.h(205) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\device_functions.h(212) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\device_functions.h(212) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\device_functions.h(212) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\math_functions.h(870) : error C2632: ‘long’ followed by ’

long’ is illegal

D:\CUDA\bin../include\math_functions.h(875) : error C2059: syntax error : ‘bad

suffix on number’

D:\CUDA\bin../include\math_functions.h(875) : error C2146: syntax error : missi

ng ‘;’ before identifier ‘l’

D:\CUDA\bin../include\math_functions.h(875) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(875) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(875) : error C2143: syntax error : missi

ng ‘;’ before ‘identifier’

D:\CUDA\bin../include\math_functions.h(875) : error C2065: ‘l’ : undeclared ide

ntifier

D:\CUDA\bin../include\math_functions.h(2280) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\math_functions.h(2285) : error C2059: syntax error : ‘bad

suffix on number’

D:\CUDA\bin../include\math_functions.h(2285) : error C2146: syntax error : miss

ing ‘;’ before identifier ‘l’

D:\CUDA\bin../include\math_functions.h(2285) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2285) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2285) : error C2143: syntax error : miss

ing ‘;’ before ‘identifier’

D:\CUDA\bin../include\math_functions.h(2292) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\math_functions.h(2297) : error C2059: syntax error : ‘bad

suffix on number’

D:\CUDA\bin../include\math_functions.h(2297) : error C2146: syntax error : miss

ing ‘;’ before identifier ‘l’

D:\CUDA\bin../include\math_functions.h(2297) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2297) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2297) : error C2143: syntax error : miss

ing ‘;’ before ‘identifier’

D:\CUDA\bin../include\math_functions.h(2304) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\math_functions.h(2309) : error C2059: syntax error : ‘bad

suffix on number’

D:\CUDA\bin../include\math_functions.h(2309) : error C2146: syntax error : miss

ing ‘;’ before identifier ‘l’

D:\CUDA\bin../include\math_functions.h(2309) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2309) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2309) : error C2143: syntax error : miss

ing ‘;’ before ‘identifier’

D:\CUDA\bin../include\math_functions.h(2468) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\math_functions.h(2470) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\math_functions.h(2476) : error C2059: syntax error : ‘bad

suffix on number’

D:\CUDA\bin../include\math_functions.h(2476) : error C2146: syntax error : miss

ing ‘;’ before identifier ‘l’

D:\CUDA\bin../include\math_functions.h(2476) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2476) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2476) : error C2143: syntax error : miss

ing ‘;’ before ‘identifier’

D:\CUDA\bin../include\math_functions.h(2478) : error C2059: syntax error : ‘bad

suffix on number’

D:\CUDA\bin../include\math_functions.h(2478) : error C2146: syntax error : miss

ing ‘)’ before identifier ‘l’

D:\CUDA\bin../include\math_functions.h(2478) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2478) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2478) : error C2143: syntax error : miss

ing ‘)’ before ‘identifier’

D:\CUDA\bin../include\math_functions.h(2478) : error C2059: syntax error : ‘)’

D:\CUDA\bin../include\math_functions.h(2478) : error C2143: syntax error : miss

ing ‘;’ before ‘{’

D:\CUDA\bin../include\math_functions.h(2481) : error C2059: syntax error : ‘bad

suffix on number’

D:\CUDA\bin../include\math_functions.h(2481) : error C2146: syntax error : miss

ing ‘)’ before identifier ‘l’

D:\CUDA\bin../include\math_functions.h(2481) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2481) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2481) : error C2143: syntax error : miss

ing ‘)’ before ‘identifier’

D:\CUDA\bin../include\math_functions.h(2481) : error C2059: syntax error : ‘)’

D:\CUDA\bin../include\math_functions.h(2481) : error C2143: syntax error : miss

ing ‘;’ before ‘{’

D:\CUDA\bin../include\math_functions.h(2492) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\math_functions.h(2494) : error C2632: ‘long’ followed by

‘long’ is illegal

D:\CUDA\bin../include\math_functions.h(2500) : error C2059: syntax error : ‘bad

suffix on number’

D:\CUDA\bin../include\math_functions.h(2500) : error C2146: syntax error : miss

ing ‘;’ before identifier ‘l’

D:\CUDA\bin../include\math_functions.h(2500) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2500) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2500) : error C2143: syntax error : miss

ing ‘;’ before ‘identifier’

D:\CUDA\bin../include\math_functions.h(2502) : error C2059: syntax error : ‘bad

suffix on number’

D:\CUDA\bin../include\math_functions.h(2502) : error C2146: syntax error : miss

ing ‘)’ before identifier ‘l’

D:\CUDA\bin../include\math_functions.h(2502) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2502) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2502) : error C2143: syntax error : miss

ing ‘)’ before ‘identifier’

D:\CUDA\bin../include\math_functions.h(2502) : error C2059: syntax error : ‘)’

D:\CUDA\bin../include\math_functions.h(2502) : error C2143: syntax error : miss

ing ‘;’ before ‘{’

D:\CUDA\bin../include\math_functions.h(2505) : error C2059: syntax error : ‘bad

suffix on number’

D:\CUDA\bin../include\math_functions.h(2505) : error C2146: syntax error : miss

ing ‘)’ before identifier ‘l’

D:\CUDA\bin../include\math_functions.h(2505) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2505) : error C2144: syntax error : ‘’ should be preceded by ‘’

D:\CUDA\bin../include\math_functions.h(2505) : error C2143: syntax error : miss

ing ‘)’ before ‘identifier’

D:\CUDA\bin../include\math_functions.h(2505) : error C2059: syntax error : ‘)’

D:\CUDA\bin../include\math_functions.h(2505) : error C2143: syntax error : miss

ing ‘;’ before ‘{’

how to deal with it?

Thanks very much!