From 52e1d8c295ffaf5f0fb6d5bca9e9dd17e81978c3 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Fri, 6 Jul 2018 15:26:24 +0200 Subject: [PATCH] deactivate bad call to MPI_Attr_put --- src/smpi/internals/smpi_deployment.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.20.1