Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Update init
[simgrid.git] / teshsuite / smpi / mpich3-test / init / exitst2.c
1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
2 /*
3  *  (C) 2001 by Argonne National Laboratory.
4  *      See COPYRIGHT in top-level directory.
5  */
6 #include "mpi.h"
7
8 /*
9  * This is a special test to check that mpiexec handles zero/non-zero
10  * return status from an application.  In this case, each process
11  * returns a different return status
12  */
13 int main(int argc, char *argv[])
14 {
15     int rank;
16     MPI_Init(&argc, &argv);
17     MPI_Comm_rank(MPI_COMM_WORLD, &rank);
18     MPI_Finalize();
19     return rank;
20 }