Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Privatization : switch data segments when copying inside a single node
authordegomme <degomme@localhost.localdomain>
Wed, 4 Jun 2014 16:18:55 +0000 (18:18 +0200)
committerdegomme <degomme@localhost.localdomain>
Wed, 4 Jun 2014 18:03:05 +0000 (20:03 +0200)
src/smpi/smpi_mpi_dt.c

index ee348b8..2b42d05 100644 (file)
@@ -157,7 +157,9 @@ int smpi_datatype_copy(void *sendbuf, int sendcount, MPI_Datatype sendtype,
                        void *recvbuf, int recvcount, MPI_Datatype recvtype)
 {
   int count;
-
+  if(smpi_privatize_global_variables){
+    switch_data_segment(smpi_process_index());
+  }
   /* First check if we really have something to do */
   if (recvcount > 0 && recvbuf != sendbuf) {
     /* FIXME: treat packed cases */