The CUDA version now uses the type float throughout.