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
smells of the day
[simgrid.git]
/
teshsuite
/
smpi
/
bug-17132
/
bug-17132.c
diff --git
a/teshsuite/smpi/bug-17132/bug-17132.c
b/teshsuite/smpi/bug-17132/bug-17132.c
index
469066b
..
d260080
100644
(file)
--- a/
teshsuite/smpi/bug-17132/bug-17132.c
+++ b/
teshsuite/smpi/bug-17132/bug-17132.c
@@
-14,7
+14,6
@@
XBT_LOG_NEW_DEFAULT_CATEGORY(MM_mpi, "Messages for this SMPI test");
int main(int argc, char ** argv)
{
int main(int argc, char ** argv)
{
- size_t err;
size_t M = 8*1024;
size_t N = 32*1024;
size_t M = 8*1024;
size_t N = 32*1024;
@@
-27,9
+26,11
@@
int main(int argc, char ** argv)
double *b = malloc(sizeof(double) * N);
// A broadcast
double *b = malloc(sizeof(double) * N);
// A broadcast
- err = MPI_Bcast(a, M, MPI_DOUBLE, 0, MPI_COMM_WORLD);
+
size_t
err = MPI_Bcast(a, M, MPI_DOUBLE, 0, MPI_COMM_WORLD);
if (err != MPI_SUCCESS) {
if (err != MPI_SUCCESS) {
- perror("Error Bcast A\n"); MPI_Finalize(); exit(-1);
+ perror("Error Bcast A\n");
+ MPI_Finalize();
+ exit(-1);
}
// Uncommenting this barrier fixes it!
}
// Uncommenting this barrier fixes it!
@@
-38,7
+39,9
@@
int main(int argc, char ** argv)
// Another broadcast
err = MPI_Bcast(b, N, MPI_DOUBLE, 0, MPI_COMM_WORLD );
if (err != MPI_SUCCESS) {
// Another broadcast
err = MPI_Bcast(b, N, MPI_DOUBLE, 0, MPI_COMM_WORLD );
if (err != MPI_SUCCESS) {
- perror("Error Bcast B\n"); MPI_Finalize(); exit(-1);
+ perror("Error Bcast B\n");
+ MPI_Finalize();
+ exit(-1);
}
// Commenting out this barrier fixes it!!
}
// Commenting out this barrier fixes it!!