CUDA works with large data, reason is the grid size exceeded the maximum limit