Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / examples / smpi / trace / trace.c
index d995984..0ae2cef 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2009-2010, 2012-2015. The SimGrid Team.
+/* Copyright (c) 2009-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
@@ -7,6 +7,7 @@
 #include <stdio.h>
 #include "mpi.h"
 #include "simgrid/instr.h"
+#include <unistd.h>
 
 #define DATATOSENT 100000
 
@@ -18,7 +19,7 @@ int main(int argc, char *argv[])
   MPI_Init(&argc, &argv);
   MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
   MPI_Comm_rank(MPI_COMM_WORLD, &rank);
-
+  sleep(rank);
   /** Tests:
   * A: 0(isend -> wait) with 1(recv)
   * B: 0(send) with 1(irecv -> wait)