X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1630b8c2917fce5760c0065b240764cda0a70eb4..8bd25d18b5b13783fe7fa8e1c7b3961f2bf5e0dc:/teshsuite/smpi/mpich3-test/rma/rget-testall.c diff --git a/teshsuite/smpi/mpich3-test/rma/rget-testall.c b/teshsuite/smpi/mpich3-test/rma/rget-testall.c index dee88b3533..f4e0dd3085 100644 --- a/teshsuite/smpi/mpich3-test/rma/rget-testall.c +++ b/teshsuite/smpi/mpich3-test/rma/rget-testall.c @@ -33,21 +33,12 @@ int main(int argc, char **argv) MPI_Win_allocate(2 * sizeof(int), sizeof(int), MPI_INFO_NULL, MPI_COMM_WORLD, &baseptr, &win); - /* - * TODO cheinrich: These assignments were originally after the MPI_Win_lock - * and before the MPI_Win_unlock call. However, with compile time optimizations on, - * this seems to cause issues with at least gcc. If valgrind or gcc is activated, - * everything works fine though. - * - * I don't know what causes these issues, but moving this here solves the problem for now. - */ - baseptr[0] = 1; - baseptr[1] = 2; - /* Initialize window buffer */ MPI_Win_lock(MPI_LOCK_EXCLUSIVE, rank, 0, win); + baseptr[0] = 1; + baseptr[1] = 2; MPI_Win_unlock(rank, win); - + MPI_Barrier(MPI_COMM_WORLD); /* Issue request-based get with testall. */ MPI_Win_lock_all(0, win); MPI_Rget(&val1, 1, MPI_INT, 0, 0, 1, MPI_INT, win, &reqs[0]);