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