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
MPI_Abort can theorically fail. Add a call to exit() to ensure that the program...
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
coll
/
allred.c
diff --git
a/teshsuite/smpi/mpich3-test/coll/allred.c
b/teshsuite/smpi/mpich3-test/coll/allred.c
index
d33f876
..
e9becde
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/coll/allred.c
+++ b/
teshsuite/smpi/mpich3-test/coll/allred.c
@@
-368,6
+368,7
@@
int main( int argc, char **argv )
if (size < 2) {
fprintf( stderr, "At least 2 processes required\n" );
MPI_Abort( MPI_COMM_WORLD, 1 );
if (size < 2) {
fprintf( stderr, "At least 2 processes required\n" );
MPI_Abort( MPI_COMM_WORLD, 1 );
+ exit(1);
}
/* Set errors return so that we can provide better information
}
/* Set errors return so that we can provide better information
@@
-383,6
+384,7
@@
int main( int argc, char **argv )
if (count <= 0) {
fprintf( stderr, "Invalid count argument %s\n", argv[1] );
MPI_Abort( MPI_COMM_WORLD, 1 );
if (count <= 0) {
fprintf( stderr, "Invalid count argument %s\n", argv[1] );
MPI_Abort( MPI_COMM_WORLD, 1 );
+ exit(1);
}
}
}
}