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
This used to work by accident
[simgrid.git]
/
teshsuite
/
smpi
/
alltoall_basic.c
diff --git
a/teshsuite/smpi/alltoall_basic.c
b/teshsuite/smpi/alltoall_basic.c
index 485752e2eff2f1fc0241e44afc2f2f993715aed4..869dd7c05acd3fc5c08fd1706d656377ed5c9190 100644
(file)
--- a/
teshsuite/smpi/alltoall_basic.c
+++ b/
teshsuite/smpi/alltoall_basic.c
@@
-4,11
+4,11
@@
/* 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. */
-#include "mpi.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
+#include "mpi.h"
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
@@
-44,6
+44,7
@@
int main(int argc, char *argv[])
sb[i] = rank + 1;
rb[i] = 0;
}
sb[i] = rank + 1;
rb[i] = 0;
}
+
status = MPI_Alltoall(sb, 1, MPI_INT, rb, 1, MPI_INT, MPI_COMM_WORLD);
printf("[%d] rcvbuf=[", rank);
status = MPI_Alltoall(sb, 1, MPI_INT, rb, 1, MPI_INT, MPI_COMM_WORLD);
printf("[%d] rcvbuf=[", rank);
@@
-53,7
+54,7
@@
int main(int argc, char *argv[])
if (rank == 0) {
if (rank == 0) {
- if (status !=
0
) {
+ if (status !=
MPI_SUCCESS
) {
printf("all_to_all returned %d\n", status);
fflush(stdout);
}
printf("all_to_all returned %d\n", status);
fflush(stdout);
}