After persistently getting error : identifier \"atomicAdd\" is undefined, I\'ve found the solution to be to compile with -arch sm_20 flag. But how
error : identifier \"atomicAdd\" is undefined
-arch sm_20
Go to the "Device" section under "CUDA C/C++". There, within "Code Generation" you can specify your sm_20. No need for the -arch.
sm_20
-arch