removed gencode for 1.x to use atomicAdd