You are compiling a debug project which is adding the -G
switch. This can be problematic with Thrust. Switch to a release project, which will remove the -G
switch.
I tried the following combinations:
-G -arch=sm_20
-arch=sm_20
-arch=sm_13
and all produced code that ran OK.
When I did this:
-G -arch=sm_13
I was able to reproduce the error you are seeing. (All tests on CUDA 6)