Skip to content

Commit

Permalink
fixes requires host buffer check
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelKoch committed Jan 20, 2023
1 parent 4745bf1 commit 3c323e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/base/mpi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ int map_rank_to_device_id(MPI_Comm comm, const int num_devices)
bool requires_host_buffer(const std::shared_ptr<const Executor>& exec,
const communicator& comm)
{
return comm.force_host_buffer() ||
(exec != exec->get_master() && !is_gpu_aware());
return exec != exec->get_master() &&
(comm.force_host_buffer() || !is_gpu_aware());
}


Expand Down

0 comments on commit 3c323e5

Please sign in to comment.