Substitute block::copy_n for DeviceSharedToGlobal