My cuda code can run very well, but I want to use the float-point version automicAdd()function in kernel function. As we know the floating-point version of atomicAdd() is only supported by devices of compute capability 2.x. So I change my project setting to :GPU Architecture(1) sm_20, GPU Architecture(2) sm_20. When I run my program there was an error said that Runtime API error: invalid texure reference.
I just don’t know why, Anyone could help me.
Thank you very much in advance.