I need usage atomic function atomicAdd(float * adress, float value).
My video card supports compute capability 2.1.
I have read that to use atomicAdd for floating point operations in gpu with compute capability 2.1, we have to specify sm_20 arch. I’m using Visual Studio 2010. I have changed “compute_10,sm_10” to “compute_20,sm_20” in Project->Properties->Configuration Properties->CUDA C/C++->Device.
But I have error:”no instance of overloaded function “atomicAdd” matches the argument list”.
I can see that during compilation still used arch sm_11.
Where should I specify the architecture used. Please help me.
I need usage atomic function atomicAdd(float * adress, float value). My video card supports
Share
Try right clicking on the .cu file, open the preferences and see if the Device setting has been changed there.