Replace call to DeviceThreadToShared with bulk::copy_n