X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/648f354f59e3ae712e973c2268b1c69395b6fdf2..b531f578ec2baa41a140c677217934de645723f8:/src/smpi/smpi_mpi_dt.c diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index bedd20559a..29843af1a1 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -150,8 +150,7 @@ CREATE_MPI_DATATYPE(MPI_PTR, void*); */ int is_datatype_valid(MPI_Datatype datatype) { return datatype != MPI_DATATYPE_NULL - && (datatype->flags & DT_FLAG_COMMITED) - && (smpi_datatype_size(datatype)>0); + && (datatype->flags & DT_FLAG_COMMITED); } size_t smpi_datatype_size(MPI_Datatype datatype) @@ -214,7 +213,7 @@ int smpi_datatype_copy(void *sendbuf, int sendcount, MPI_Datatype sendtype, { int count; if(smpi_privatize_global_variables){ - switch_data_segment(smpi_process_index()); + smpi_switch_data_segment(smpi_process_index()); } /* First check if we really have something to do */ if (recvcount > 0 && recvbuf != sendbuf) { @@ -1617,8 +1616,8 @@ void smpi_op_apply(MPI_Op op, void *invec, void *inoutvec, int *len, MPI_Datatype * datatype) { if(smpi_privatize_global_variables){ //we need to switch here, as the called function may silently touch global variables - XBT_VERB("Applying operation, switch to the right data frame "); - switch_data_segment(smpi_process_index()); + XBT_DEBUG("Applying operation, switch to the right data frame "); + smpi_switch_data_segment(smpi_process_index()); } if(!_xbt_replay_is_active())