CPU and GPU code do the same thing