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
separate dsend and pingpong
[simgrid.git]
/
teshsuite
/
smpi
/
pt2pt-dsend
/
pt2pt-dsend.c
diff --git
a/teshsuite/smpi/pingpong/dsend.c
b/teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c
similarity index 96%
rename from
teshsuite/smpi/pingpong/dsend.c
rename to
teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c
index
30d6389
..
4a1f8b9
100644
(file)
--- a/
teshsuite/smpi/pingpong/dsend.c
+++ b/
teshsuite/smpi/pt2pt-dsend/pt2pt-dsend.c
@@
-14,15
+14,13
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(dsend,"the dsend test");
int main(int argc, char *argv[]) {
int rank;
int data=11;
int main(int argc, char *argv[]) {
int rank;
int data=11;
-
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
-
+
if (rank==1) {
data=22;
MPI_Send(&data,1,MPI_INT,(rank+1)%2,666,MPI_COMM_WORLD);
if (rank==1) {
data=22;
MPI_Send(&data,1,MPI_INT,(rank+1)%2,666,MPI_COMM_WORLD);
-// smpi_sleep(1000);
} else {
MPI_Recv(&data,1,MPI_INT,MPI_ANY_SOURCE,666,MPI_COMM_WORLD,NULL);
if (data !=22) {
} else {
MPI_Recv(&data,1,MPI_INT,MPI_ANY_SOURCE,666,MPI_COMM_WORLD,NULL);
if (data !=22) {