From: degomme Date: Wed, 4 Jun 2014 16:18:55 +0000 (+0200) Subject: Privatization : switch data segments when copying inside a single node X-Git-Tag: v3_12~1005^2~4 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6a1530b72172faab6860601b33b8325ca8490192?hp=7b980def32cd726e07193e679c3e97e0db47d91e Privatization : switch data segments when copying inside a single node --- diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index ee348b8eb9..2b42d05a97 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -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 */