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
Introduce sg_storage_size_t type
[simgrid.git]
/
teshsuite
/
smpi
/
dsend.c
diff --git
a/teshsuite/smpi/dsend.c
b/teshsuite/smpi/dsend.c
index
c304c5d
..
8043e5b
100644
(file)
--- a/
teshsuite/smpi/dsend.c
+++ b/
teshsuite/smpi/dsend.c
@@
-1,4
+1,5
@@
-/* Copyright (c) 2011. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2011-2013. 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 is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-23,7
+24,7
@@
int main(int argc, char *argv[]) {
MPI_Send(&data,1,MPI_INT,(rank+1)%2,666,MPI_COMM_WORLD);
// smpi_sleep(1000);
} else {
MPI_Send(&data,1,MPI_INT,(rank+1)%2,666,MPI_COMM_WORLD);
// smpi_sleep(1000);
} else {
- MPI_Recv(&data,1,MPI_INT,
-1
,666,MPI_COMM_WORLD,NULL);
+ MPI_Recv(&data,1,MPI_INT,
MPI_ANY_SOURCE
,666,MPI_COMM_WORLD,NULL);
if (data !=22) {
printf("rank %d: Damn, data does not match (got %d)\n",rank, data);
}
if (data !=22) {
printf("rank %d: Damn, data does not match (got %d)\n",rank, data);
}