The GPU code