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
Change include order for smpi tests/examples to avoid conflicts
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
coll
/
red_scat_block2.c
diff --git
a/teshsuite/smpi/mpich3-test/coll/red_scat_block2.c
b/teshsuite/smpi/mpich3-test/coll/red_scat_block2.c
index
5346905
..
e98273b
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/coll/red_scat_block2.c
+++ b/
teshsuite/smpi/mpich3-test/coll/red_scat_block2.c
@@
-70,12
+70,15
@@
void nc_sum(void *a, void *b, int *count, MPI_Datatype *type)
int main( int argc, char **argv )
{
int main( int argc, char **argv )
{
+#if MTEST_HAVE_MIN_MPI_VERSION(2,2)
int *sendbuf;
int block_size;
int *recvbuf;
int *sendbuf;
int block_size;
int *recvbuf;
- int size, rank, i;
- MPI_Comm comm;
+ int i;
MPI_Op left_op, right_op, nc_sum_op;
MPI_Op left_op, right_op, nc_sum_op;
+#endif
+ int size, rank;
+ MPI_Comm comm;
MTest_Init( &argc, &argv );
comm = MPI_COMM_WORLD;
MTest_Init( &argc, &argv );
comm = MPI_COMM_WORLD;