Division operations may be complicated for GPUs. Two possible strategies to deal with this: 1) Replace division calls (e.g. a/b) by multiplication with the inverse instead (e.g. a*(1.0/b)) 2) use compiler flags such as -ffast-math