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
Merge pull request #2 from mquinson/master
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
coll
/
alltoallw2.c
diff --git
a/teshsuite/smpi/mpich3-test/coll/alltoallw2.c
b/teshsuite/smpi/mpich3-test/coll/alltoallw2.c
index 7d40236f4157352e59ddd3ea39a93cfb9a2c9846..981b7702b5e3c08c9e4f0b3bf8f5ba75888d3830 100644
(file)
--- a/
teshsuite/smpi/mpich3-test/coll/alltoallw2.c
+++ b/
teshsuite/smpi/mpich3-test/coll/alltoallw2.c
@@
-47,6
+47,7
@@
int main( int argc, char **argv )
if (!sbuf || !rbuf) {
fprintf( stderr, "Could not allocated buffers!\n" );
MPI_Abort( comm, 1 );
if (!sbuf || !rbuf) {
fprintf( stderr, "Could not allocated buffers!\n" );
MPI_Abort( comm, 1 );
+ exit(1);
}
/* Load up the buffers */
}
/* Load up the buffers */
@@
-65,6
+66,7
@@
int main( int argc, char **argv )
if (!sendcounts || !recvcounts || !rdispls || !sdispls || !sendtypes || !recvtypes) {
fprintf( stderr, "Could not allocate arg items!\n" );
MPI_Abort( comm, 1 );
if (!sendcounts || !recvcounts || !rdispls || !sdispls || !sendtypes || !recvtypes) {
fprintf( stderr, "Could not allocate arg items!\n" );
MPI_Abort( comm, 1 );
+ exit(1);
}
/* Note that process 0 sends no data (sendcounts[0] = 0) */
for (i=0; i<size; i++) {
}
/* Note that process 0 sends no data (sendcounts[0] = 0) */
for (i=0; i<size; i++) {
@@
-101,6
+103,7
@@
int main( int argc, char **argv )
if (!rbuf) {
fprintf( stderr, "Could not reallocate rbuf!\n" );
MPI_Abort( comm, 1 );
if (!rbuf) {
fprintf( stderr, "Could not reallocate rbuf!\n" );
MPI_Abort( comm, 1 );
+ exit(1);
}
/* Load up the buffers */
}
/* Load up the buffers */
@@
-133,6
+136,11
@@
int main( int argc, char **argv )
}
}
}
}
}
}
+
+ MPI_Comm_set_errhandler(MPI_COMM_WORLD, MPI_ERRORS_RETURN);
+ if (MPI_SUCCESS == MPI_Alltoallw(rbuf, recvcounts, rdispls, recvtypes,
+ rbuf, recvcounts, rdispls, recvtypes, comm))
+ err++;
#endif
free(recvtypes);
#endif
free(recvtypes);