Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] smpi_win.cpp: Convert target_rank for other communicators
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 24 Jan 2018 13:26:39 +0000 (14:26 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 24 Jan 2018 14:58:22 +0000 (15:58 +0100)
I'm not sure that comm_ and recv_win->comm_ are the same, so I convert them.

src/smpi/mpi/smpi_win.cpp

index 36f601c..5a2544d 100644 (file)
@@ -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_++;