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
/
alltoall_basic.c
diff --git
a/teshsuite/smpi/alltoall_basic.c
b/teshsuite/smpi/alltoall_basic.c
index
869dd7c
..
c3af311
100644
(file)
--- a/
teshsuite/smpi/alltoall_basic.c
+++ b/
teshsuite/smpi/alltoall_basic.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2009
, 2010
. The SimGrid Team.
+/* Copyright (c) 2009
-2010, 2012-2013
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-32,6
+32,7
@@
int main(int argc, char *argv[])
perror("can't allocate send buffer");
fflush(stderr);
MPI_Abort(MPI_COMM_WORLD, EXIT_FAILURE);
perror("can't allocate send buffer");
fflush(stderr);
MPI_Abort(MPI_COMM_WORLD, EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
rb = (int *) malloc(size * sizeof(int));
if (!rb) {
}
rb = (int *) malloc(size * sizeof(int));
if (!rb) {
@@
-39,6
+40,7
@@
int main(int argc, char *argv[])
fflush(stderr);
free(sb);
MPI_Abort(MPI_COMM_WORLD, EXIT_FAILURE);
fflush(stderr);
free(sb);
MPI_Abort(MPI_COMM_WORLD, EXIT_FAILURE);
+ exit(EXIT_FAILURE);
}
for (i = 0; i < size; ++i) {
sb[i] = rank + 1;
}
for (i = 0; i < size; ++i) {
sb[i] = rank + 1;