Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation problems when using MPI & CUDA #26720

Merged
merged 1 commit into from Mar 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion tensorflow/contrib/mpi/mpi_rendezvous_mgr.cc
Expand Up @@ -29,6 +29,7 @@ limitations under the License.
#include "tensorflow/core/common_runtime/gpu/gpu_util.h"
#include "tensorflow/core/distributed_runtime/session_mgr.h"
#include "tensorflow/core/distributed_runtime/tensor_coding.h"
#include "tensorflow/core/framework/allocator.h"

namespace tensorflow {

Expand Down Expand Up @@ -122,7 +123,7 @@ void MPIRemoteRendezvous::RecvFromRemoteAsync(
} else {
TensorResponse tr;
tr.InitAlloc(dst_device, recv_args.alloc_attrs);
tr.InitPartial(mpi_response.response());
tr.InitPartial(mpi_response.response(), AllocationAttributes());
const size_t nBytes = tr.tensor().TotalBytes();
void* data = const_cast<void*>(DMAHelper::base(&tr.tensor()));
MPI_Status status;
Expand Down
2 changes: 2 additions & 0 deletions tensorflow/contrib/mpi_collectives/kernels/ring.cu.cc
Expand Up @@ -19,6 +19,8 @@ limitations under the License.

#define EIGEN_USE_GPU

#include "tensorflow/core/util/cuda_launch_config.h"

#include "tensorflow/contrib/mpi_collectives/kernels/ring.h"

namespace tensorflow {
Expand Down