From 6a1530b72172faab6860601b33b8325ca8490192 Mon Sep 17 00:00:00 2001 From: degomme Date: Wed, 4 Jun 2014 18:18:55 +0200 Subject: [PATCH 1/1] Privatization : switch data segments when copying inside a single node --- src/smpi/smpi_mpi_dt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */ -- 2.20.1