Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add memset(0) for shared calloc.
[simgrid.git] / teshsuite / smpi / auto-shared / auto-shared.c
index 9bc350f..b32153e 100644 (file)
@@ -34,6 +34,8 @@ int main(int argc, char *argv[])
   MPI_Comm_size(MPI_COMM_WORLD, &size);
   //Let's Allocate a memory buffer
   uint64_t* buf = calloc(1, sizeof(uint64_t));
+
+  MPI_Barrier(MPI_COMM_WORLD);
   //one writes data in it
   if(rank==0){
     *buf=size;