darshan-shutdown-bench.c 887 Bytes
Newer Older
1
/*
2
 *  (C) 2015 by Argonne National Laboratory.
3 4 5
 *      See COPYRIGHT in top-level directory.
 */

6 7 8 9 10 11 12 13 14 15 16
/* Arguments: an integer specifying the number of iterations to run of each
 * test phase
 */

#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

#include <mpi.h>
17 18 19 20 21 22

/* NOTE: we deliberately provide our own function declaration here; there is
 * no header installed with the instrumentation package that defines the
 * benchmarking hooks for us.  This should only be used by special-purpose
 * benchmarking tools.
 */
23
void darshan_shutdown_bench(int argc, char** argv);
24 25 26 27 28

int main(int argc, char **argv) 
{
    MPI_Init(&argc, &argv);

29
    if(argc != 1)
30
    {
31
        fprintf(stderr, "Usage: %s\n", argv[0]);
32 33 34 35
        MPI_Finalize();
        return(-1);
    }

36
    darshan_shutdown_bench(argc, argv);
37 38 39 40

    MPI_Finalize();
    return(0);
}