Replace call to mgpu::DeviceSharedToGlobal with bulk::copy_n