Error with -ptx or -keep option of nvcc

Hey All,

I want to analyze the PTX code of my GPU Application. For doing so, I added -keep option to nvcc but I get a lot of errors. My application compiles perfectly without -keep.

What can be the reason?
What should I do?

Try this :

"$(CUDA_BIN_PATH)\nvcc.exe"  -O3 --keep --ptxas-options="-v -mem  " --opencc-options "-LIST:source=on "  -maxrregcount=30 -ccbin "$(VCInstallDir)bin" -arch sm_13 -c -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Wp64,/O2,/Zi,/MT -I"C:\Program Files (x86)\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc" -I./ -I../../common/inc -o $(PlatformName)\$(ConfigurationName)\GGPUInterpolation.obj D:\Interpolation\GGPUInterpolation.cu

You probably put the --keep directive in the wrong place…

eyal