X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6b214e9de5705ca77332bab116b2f23dba415f50..c7755270750cf39ac2b73cda0e05ecf375a53562:/examples/smpi/smpi_msg_masterslave/masterslave_mailbox_smpi.c diff --git a/examples/smpi/smpi_msg_masterslave/masterslave_mailbox_smpi.c b/examples/smpi/smpi_msg_masterslave/masterslave_mailbox_smpi.c index 90091d7b25..2ea6b1bcf4 100644 --- a/examples/smpi/smpi_msg_masterslave/masterslave_mailbox_smpi.c +++ b/examples/smpi/smpi_msg_masterslave/masterslave_mailbox_smpi.c @@ -116,6 +116,7 @@ int main(int argc, char *argv[]) msg_error_t res; MSG_init(&argc, argv); + SMPI_init(); xbt_assert(argc > 2,"Usage: %s platform_file deployment_file\n" "\nexample: %s msg_platform.xml msg_deployment.xml\n", argv[0], argv[0]); @@ -129,7 +130,6 @@ int main(int argc, char *argv[]) // the second performing an alltoall on 4 nodes SMPI_app_instance_register("alltoall_mpi", alltoall_mpi,4); MSG_launch_application(argv[2]); - SMPI_init(); res = MSG_main();