Merge pull request #28641 from byronyi:patch-4

PiperOrigin-RevId: 248021303
This commit is contained in:
TensorFlower Gardener 2019-05-13 16:49:32 -07:00
commit b1c6a1accb

View File

@ -1629,12 +1629,13 @@ void RdmaTensorRequest::RecvTensorContent() {
CountCopies(key_, (void*)DMAHelper::base(proxy_tensor_),
(void*)DMAHelper::base(result_tensor_),
result_tensor_->TotalBytes(), false);
GPUUtil::CopyCPUTensorToGPU(proxy_tensor_, recv_args_.device_context,
dst_dev_, result_tensor_,
GPUUtil::CopyCPUTensorToGPU(
proxy_tensor_, recv_args_.device_context, dst_dev_, result_tensor_,
[this](const Status& s) {
CHECK(s.ok()) << "copy tensor to gpu sync";
Done(s);
});
},
true /*sync_dst_compute*/);
return;
}
#endif