Ptx aseembly aborted due to errors

I tried to use CMAKE to rebuild a sample, but I always got errors. So I decide to build a cuda program in vs2010, and put the sample’s code, including .cpp and .cu files,into the program. When I run the program, I get an error “Ptx aseembly aborted due to errors”. Where I did wrong and how can I fix it?
I use VS2010, CUDA5.5, OptiX3.5.1.
I’d appreciate your help.

[EDIT]I have fixed it by changing the cuda configuration.