X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/d9c9e08948a8387e9e8ecb0fe67ab6b94ec2a66f..4347df3835009b6526b26de2a7f3bc5ac39a3d0a:/teshsuite/smpi/mpich3-test/rma/rma-contig.c diff --git a/teshsuite/smpi/mpich3-test/rma/rma-contig.c b/teshsuite/smpi/mpich3-test/rma/rma-contig.c index 581b95fe54..7cc14de5e6 100644 --- a/teshsuite/smpi/mpich3-test/rma/rma-contig.c +++ b/teshsuite/smpi/mpich3-test/rma/rma-contig.c @@ -9,18 +9,18 @@ #include #include -#define MAX_DATA_SIZE (1024*128*16) -#define MAX_NUM_ITERATIONS (8192*4) +#define MAX_DATA_SIZE (1024) +#define MAX_NUM_ITERATIONS (1024) #define MIN_NUM_ITERATIONS 8 #define NUM_WARMUP_ITER 1 const int verbose = 0; static int rank; -void run_test(int lock_mode, int lock_assert) +static void run_test(int lock_mode, int lock_assert) { int nproc, test_iter, target_rank, data_size; - int *buf, *win_buf; + char *buf, *win_buf; MPI_Win win; MPI_Comm_rank(MPI_COMM_WORLD, &rank); @@ -101,8 +101,8 @@ void run_test(int lock_mode, int lock_assert) t_acc = MPI_Wtime(); MPI_Win_lock(lock_mode, target_rank, lock_assert, win); - MPI_Accumulate(buf, data_size / sizeof(int), MPI_INT, target_rank, - 0, data_size / sizeof(int), MPI_INT, MPI_SUM, win); + MPI_Accumulate(buf, data_size, MPI_BYTE, target_rank, + 0, data_size, MPI_BYTE, MPI_SUM, win); MPI_Win_unlock(target_rank, win); } t_acc = (MPI_Wtime() - t_acc) / num_iter;