1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
3 * (C) 2006 by Argonne National Laboratory.
4 * See COPYRIGHT in top-level directory.
10 int main(int argc, char *argv[])
16 MTest_Init(&argc, &argv);
18 #ifdef USE_WIN_ALLOCATE
20 MPI_Win_allocate(0, 1, MPI_INFO_NULL, MPI_COMM_WORLD, &baseptr, &win);
22 MPI_Win_create(NULL, 0, 1, MPI_INFO_NULL, MPI_COMM_WORLD, &win);
24 MPI_Win_get_group(win, &group);
26 MPI_Win_post(group, 0, win);
27 MPI_Win_start(group, 0, win);
29 MPI_Win_complete(win);
33 MPI_Group_free(&group);