Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rework SMPI initialization to handle argc and argv earlier than in MPI_Init when...
[simgrid.git] / teshsuite / smpi / pt2pt-dsend / pt2pt-dsend.c
index 7bdec96..32a7656 100644 (file)
@@ -1,11 +1,11 @@
-/* Copyright (c) 2011-2014. The SimGrid Team.
+/* Copyright (c) 2011-2018. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
 
 /* This program simply does a very small exchange to test whether using SIMIX dsend to model the eager mode works */
-
+#include <stdint.h>
 #include <stdio.h>
 #include <mpi.h>
 
@@ -15,7 +15,7 @@ int main(int argc, char *argv[]) {
   int rank;
   int32_t data=11;
 
-  MPI_Init(&argc, &argv);
+  MPI_Init(NULL, NULL);
   MPI_Comm_rank(MPI_COMM_WORLD, &rank);
   MPI_Request r;
   if (rank==1) {
@@ -40,7 +40,6 @@ int main(int argc, char *argv[]) {
     }
   }
 
-
   XBT_INFO("rank %d: data exchanged", rank);
   MPI_Finalize();
   return 0;