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
Somehow OSX "lost" aligned_alloc recently ?
[simgrid.git]
/
teshsuite
/
smpi
/
pt2pt-pingpong
/
pt2pt-pingpong.c
diff --git
a/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
b/teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
index
c46ea33
..
c395917
100644
(file)
--- a/
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
+++ b/
teshsuite/smpi/pt2pt-pingpong/pt2pt-pingpong.c
@@
-8,6
+8,7
@@
#include <stdio.h>
#include <mpi.h>
#include <stdio.h>
#include <mpi.h>
+#include <stdlib.h>
static void test_opts(int* argc, char **argv[]){
int found = 0;
static void test_opts(int* argc, char **argv[]){
int found = 0;
@@
-30,6
+31,7
@@
int main(int argc, char *argv[])
int rank;
int msg = 99;
MPI_Status status;
int rank;
int msg = 99;
MPI_Status status;
+ int* test = (int*)malloc(8);
int err = MPI_Init(&argc, &argv); /* Initialize MPI */
int err = MPI_Init(&argc, &argv); /* Initialize MPI */
@@
-73,6
+75,7
@@
int main(int argc, char *argv[])
MPI_Send(&msg, 1, MPI_INT, src, tag2, MPI_COMM_WORLD);
}
}
MPI_Send(&msg, 1, MPI_INT, src, tag2, MPI_COMM_WORLD);
}
}
+ free(test);
MPI_Finalize();
return 0;
}
MPI_Finalize();
return 0;
}