darshan-bgq-log-format.h 1.84 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
 * Copyright (C) 2015 University of Chicago.
 * See COPYRIGHT notice in top-level directory.
 *
 */

#ifndef __DARSHAN_BGQ_LOG_FORMAT_H
#define __DARSHAN_BGQ_LOG_FORMAT_H

#include "darshan-log-format.h"

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

#define BGQ_COUNTERS \
    X(BGQ_CSJOBID, "control system jobid") \
    X(BGQ_NNODES, "number of BGQ compute nodes") \
    X(BGQ_RANKSPERNODE, "number of MPI ranks per node") \
    X(BGQ_DDRPERNODE, "size in MB of DDR3 per node") \
    X(BGQ_INODES, "number of i/o nodes") \
    X(BGQ_ANODES, "dimension of A torus") \
    X(BGQ_BNODES, "dimension of B torus") \
    X(BGQ_CNODES, "dimension of C torus") \
    X(BGQ_DNODES, "dimension of D torus") \
    X(BGQ_ENODES, "dimension of E torus") \
    X(BGQ_TORUSENABLED, "which dimensions are torus") \
    X(BGQ_NUM_INDICES, "end of counters")

#define BGQ_F_COUNTERS \
    X(BGQ_F_TIMESTAMP, "timestamp when data was collected") \
    X(BGQ_F_NUM_INDICES, "end of counters")

#define X(a, b) a,
32 33 34
/* integer counters for the "BGQ" example module */
enum darshan_bgq_indices
{
35
    BGQ_COUNTERS
36 37 38 39 40
};

/* floating point counters for the "BGQ" example module */
enum darshan_bgq_f_indices
{
41
    BGQ_F_COUNTERS
42
};
43
#undef X
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63

/* the darshan_bgq_record structure encompasses the high-level data/counters
 * which would actually be logged to file by Darshan for the "BGQ" example
 * module. This example implementation logs the following data for each
 * record:
 *      - a corresponding Darshan record identifier
 *      - the rank of the process responsible for the record
 *      - integer I/O counters (operation counts, I/O sizes, etc.)
 *      - floating point I/O counters (timestamps, cumulative timers, etc.)
 */
struct darshan_bgq_record
{
    darshan_record_id f_id;
    int64_t rank;
    int alignment;
    int64_t counters[BGQ_NUM_INDICES];
    double fcounters[BGQ_F_NUM_INDICES];
};

#endif /* __DARSHAN_BGQ_LOG_FORMAT_H */