Replace call to DeviceGlobalToShared with copy_n_global_to_shared.