Use float instead of double. working on AMD/Intel. Nvidia still complains.