A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update copyright lines.
[simgrid.git]
/
examples
/
smpi
/
trace
/
trace.c
diff --git
a/examples/smpi/trace/trace.c
b/examples/smpi/trace/trace.c
index
d995984
..
8feffbf
100644
(file)
--- a/
examples/smpi/trace/trace.c
+++ b/
examples/smpi/trace/trace.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2009-20
10, 2012-2015
. The SimGrid Team.
+/* Copyright (c) 2009-20
21
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* 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 <stdio.h>
#include "mpi.h"
#include "simgrid/instr.h"
+#include <unistd.h>
#define DATATOSENT 100000
#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);
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)
/** Tests:
* A: 0(isend -> wait) with 1(recv)
* B: 0(send) with 1(irecv -> wait)