The cuda function provide the GPU version of the algorithm.