2 * (C) 2018 by Argonne National Laboratory.
3 * See COPYRIGHT in top-level directory.
5 * Portions of this code were written by Intel Corporation.
6 * Copyright (C) 2011-2018 Intel Corporation. Intel provides this material
7 * to Argonne National Laboratory subject to Software Grant and Corporate
8 * Contributor License Agreement dated February 8, 2012.
10 * This program checks if MPICH can correctly handle huge synchronous sends
20 #define COUNT (4*1024*1024)
22 int main(int argc, char *argv[])
27 MTest_Init(&argc, &argv);
29 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
30 MPI_Comm_size(MPI_COMM_WORLD, &size);
33 fprintf(stderr, "Launch with two processes\n");
34 MPI_Abort(MPI_COMM_WORLD, 1);
37 buff = malloc(COUNT * sizeof(int));
40 MPI_Ssend(buff, COUNT, MPI_INT, 1, 0, MPI_COMM_WORLD);
42 MPI_Recv(buff, COUNT, MPI_INT, 0, 0, MPI_COMM_WORLD, MPI_STATUS_IGNORE);