Replace call to DeviceThreadToShared with call to thrust::copy_n.