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