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 master into mc-process
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
coll
/
red4.c
diff --git
a/teshsuite/smpi/mpich3-test/coll/red4.c
b/teshsuite/smpi/mpich3-test/coll/red4.c
index
a3e9183
..
abef5a8
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/coll/red4.c
+++ b/
teshsuite/smpi/mpich3-test/coll/red4.c
@@
-220,9
+220,15
@@
int main( int argc, char *argv[] )
MPI_Type_commit( &mattype );
buf = (int *)malloc( count * size * size * sizeof(int) );
MPI_Type_commit( &mattype );
buf = (int *)malloc( count * size * size * sizeof(int) );
- if (!buf) MPI_Abort( MPI_COMM_WORLD, 1 );
+ if (!buf) {
+ MPI_Abort( MPI_COMM_WORLD, 1 );
+ exit(1);
+ }
bufout = (int *)malloc( count * size * size * sizeof(int) );
bufout = (int *)malloc( count * size * size * sizeof(int) );
- if (!bufout) MPI_Abort( MPI_COMM_WORLD, 1 );
+ if (!bufout) {
+ MPI_Abort( MPI_COMM_WORLD, 1 );
+ exit(1);
+ }
for (root = 0; root < size; root ++) {
initMat( comm, buf );
for (root = 0; root < size; root ++) {
initMat( comm, buf );