From: Augustin Degomme Date: Fri, 6 Jul 2018 13:26:24 +0000 (+0200) Subject: deactivate bad call to MPI_Attr_put X-Git-Tag: v3_21~549 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/52e1d8c295ffaf5f0fb6d5bca9e9dd17e81978c3 deactivate bad call to MPI_Attr_put --- diff --git a/src/smpi/internals/smpi_deployment.cpp b/src/smpi/internals/smpi_deployment.cpp index ccf7148c0e..72b798a9d2 100644 --- a/src/smpi/internals/smpi_deployment.cpp +++ b/src/smpi/internals/smpi_deployment.cpp @@ -66,7 +66,9 @@ void SMPI_app_instance_register(const char *name, xbt_main_func_t code, int num_ new simgrid::s4u::Barrier(num_processes)); MPI_Group group = new simgrid::smpi::Group(instance.size); instance.comm_world = new simgrid::smpi::Comm(group, nullptr); - MPI_Attr_put(instance.comm_world, MPI_UNIVERSE_SIZE, reinterpret_cast(instance.size)); +// FIXME : using MPI_Attr_put with MPI_UNIVERSE_SIZE is forbidden and we make it a no-op (which triggers a warning as MPI_ERR_ARG is returned). +// Directly calling Comm::attr_put breaks for now, as MPI_UNIVERSE_SIZE,is <0 +// instance.comm_world->attr_put(MPI_UNIVERSE_SIZE, reinterpret_cast(instance.size)); process_count+=num_processes;