Avoid undefined atomicAdd error.
nvcc (sometimes) complained about a missing atomicAdd(double*, double) function.
After moving it in front of the uses, the complaints were gone.
nvcc (sometimes) complained about a missing atomicAdd(double*, double) function.
After moving it in front of the uses, the complaints were gone.