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 some tests to avoid useless global variables
[simgrid.git]
/
teshsuite
/
smpi
/
mpich3-test
/
rma
/
contention_putget.c
diff --git
a/teshsuite/smpi/mpich3-test/rma/contention_putget.c
b/teshsuite/smpi/mpich3-test/rma/contention_putget.c
index
312cf31
..
abfdb2b
100644
(file)
--- a/
teshsuite/smpi/mpich3-test/rma/contention_putget.c
+++ b/
teshsuite/smpi/mpich3-test/rma/contention_putget.c
@@
-18,12
+18,15
@@
#define MAXELEMS 6400
#define COUNT 1000
#define MAXELEMS 6400
#define COUNT 1000
-static int me, nproc;
+
static const int verbose = 0;
void test_put(void);
void test_put(void)
{
static const int verbose = 0;
void test_put(void);
void test_put(void)
{
+ int me, nproc;
+ MPI_Comm_size(MPI_COMM_WORLD, &nproc);
+ MPI_Comm_rank(MPI_COMM_WORLD, &me);
MPI_Win dst_win;
double *dst_buf;
double src_buf[MAXELEMS];
MPI_Win dst_win;
double *dst_buf;
double src_buf[MAXELEMS];
@@
-77,6
+80,7
@@
void test_put(void)
int main(int argc, char *argv[])
{
MPI_Init(&argc, &argv);
int main(int argc, char *argv[])
{
MPI_Init(&argc, &argv);
+ int me, nproc;
MPI_Comm_size(MPI_COMM_WORLD, &nproc);
MPI_Comm_rank(MPI_COMM_WORLD, &me);
MPI_Comm_size(MPI_COMM_WORLD, &nproc);
MPI_Comm_rank(MPI_COMM_WORLD, &me);