root/ompi/mca/common/ompio/common_ompio_print_queue.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* -*- Mode: C; c-basic-offset:4 ; -*- */
   2 /*
   3  * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
   4  *                         University Research and Technology
   5  *                         Corporation.  All rights reserved.
   6  * Copyright (c) 2004-2007 The University of Tennessee and The University
   7  *                         of Tennessee Research Foundation.  All rights
   8  *                         reserved.
   9  * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
  10  *                         University of Stuttgart.  All rights reserved.
  11  * Copyright (c) 2004-2005 The Regents of the University of California.
  12  *                         All rights reserved.
  13  * Copyright (c) 2008-2016 University of Houston. All rights reserved.
  14  * Copyright (c) 2015-2018 Research Organization for Information Science
  15  *                         and Technology (RIST). All rights reserved.
  16  * $COPYRIGHT$
  17  *
  18  * Additional copyrights may follow
  19  *
  20  * $HEADER$
  21  */
  22 
  23 #ifndef MCA_COMMON_OMPIO_PRINT_QUEUE_H
  24 #define MCA_COMMON_OMPIO_PRINT_QUEUE_H
  25 
  26 
  27 #include "mpi.h"
  28 
  29 #define MCA_COMMON_OMPIO_QUEUESIZE 2048
  30 
  31 /*To extract time-information */
  32 struct mca_common_ompio_print_entry{
  33     double time[3];
  34     int nprocs_for_coll;
  35     int aggregator;
  36 };
  37 
  38 typedef struct mca_common_ompio_print_entry mca_common_ompio_print_entry;
  39 
  40 struct mca_common_ompio_print_queue {
  41     mca_common_ompio_print_entry entry[MCA_COMMON_OMPIO_QUEUESIZE + 1];
  42     int first;
  43     int last;
  44     int count;
  45 };
  46 typedef struct mca_common_ompio_print_queue mca_common_ompio_print_queue;
  47 
  48 
  49 OMPI_DECLSPEC int mca_common_ompio_register_print_entry (struct mca_common_ompio_print_queue *q,
  50                                                          mca_common_ompio_print_entry x);
  51 
  52 OMPI_DECLSPEC int mca_common_ompio_unregister_print_entry (struct mca_common_ompio_print_queue *q,
  53                                                            mca_common_ompio_print_entry *x);
  54 
  55 OMPI_DECLSPEC int mca_common_ompio_empty_print_queue( struct mca_common_ompio_print_queue *q);
  56 
  57 OMPI_DECLSPEC int mca_common_ompio_full_print_queue( struct mca_common_ompio_print_queue *q);
  58 
  59 OMPI_DECLSPEC int mca_common_ompio_initialize_print_queue(struct mca_common_ompio_print_queue **q);
  60 
  61 OMPI_DECLSPEC int mca_common_ompio_print_time_info( struct mca_common_ompio_print_queue *q,
  62                                                     char *name_operation, struct ompio_file_t *fh);
  63 
  64 
  65 END_C_DECLS
  66 
  67 #endif /* MCA_COMMON_OMPIO_PRINT_QUEUE_H */

/* [<][>][^][v][top][bottom][index][help] */