Replace call to DeviceSharedToGlobal with block::copy_n.