tweaked code generation for atomicOp on global memory. Not all compute capabilities can do atomicOp on shared mem