X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8e426c4ae3d3b647a1610ecfd469e6e3c34f3f75..8ac5092caa1f74c8636bab24367a83fb591fffd0:/src/smpi/smpi_datatype.cpp diff --git a/src/smpi/smpi_datatype.cpp b/src/smpi/smpi_datatype.cpp index 387325c902..52ca497300 100644 --- a/src/smpi/smpi_datatype.cpp +++ b/src/smpi/smpi_datatype.cpp @@ -270,6 +270,13 @@ int Datatype::unpack(void* inbuf, int insize, int* position, void* outbuf, int o int Datatype::copy(void *sendbuf, int sendcount, MPI_Datatype sendtype, void *recvbuf, int recvcount, MPI_Datatype recvtype){ int count; + + if(smpi_is_shared(sendbuf)){ + XBT_DEBUG("Copy input buf %p is shared. Let's ignore it.", sendbuf); + }else if(smpi_is_shared(recvbuf)){ + XBT_DEBUG("Copy output buf %p is shared. Let's ignore it.", recvbuf); + } + if(smpi_privatize_global_variables){ smpi_switch_data_segment(smpi_process()->index()); }