From 20180cf998fe77ea59e5dbffd7ba0515124c775d Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Wed, 24 Jan 2018 14:26:39 +0100 Subject: [PATCH] [SMPI] smpi_win.cpp: Convert target_rank for other communicators I'm not sure that comm_ and recv_win->comm_ are the same, so I convert them. --- src/smpi/mpi/smpi_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/mpi/smpi_win.cpp b/src/smpi/mpi/smpi_win.cpp index 36f601c0cb..5a2544d586 100644 --- a/src/smpi/mpi/smpi_win.cpp +++ b/src/smpi/mpi/smpi_win.cpp @@ -339,7 +339,7 @@ int Win::accumulate( void *origin_addr, int origin_count, MPI_Datatype origin_da // prepare receiver request MPI_Request rreq = Request::rma_recv_init(recv_addr, target_count, target_datatype, recv_win->comm_->rank(), - target_rank, SMPI_RMA_TAG - 3 - count_, recv_win->comm_, op); + recv_win->comm_->group()->rank(comm_->group()->actor(target_rank)), SMPI_RMA_TAG - 3 - count_, recv_win->comm_, op); count_++; -- 2.20.1