root/ompi/mca/io/romio321/romio/adio/ad_gpfs/ad_gpfs_aggrs.h

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

INCLUDED FROM


   1 /* ---------------------------------------------------------------- */
   2 /* (C)Copyright IBM Corp.  2007, 2008                               */
   3 /* ---------------------------------------------------------------- */
   4 /**
   5  * \file ad_gpfs_aggrs.h
   6  * \brief ???
   7  */
   8 
   9 /*
  10  * File: ad_gpfs_aggrs.h
  11  *
  12  * Declares functions optimized specifically for GPFS parallel I/O solution.
  13  *
  14  */
  15 
  16 #ifndef AD_GPFS_AGGRS_H_
  17 #define AD_GPFS_AGGRS_H_
  18 
  19 #include "adio.h"
  20 #include <sys/stat.h>
  21 
  22 #ifdef HAVE_GPFS_H
  23 #include <gpfs.h>
  24 #endif
  25 
  26 
  27     /* overriding ADIOI_Calc_file_domains() to apply 'aligned file domain partitioning'. */
  28     void ADIOI_GPFS_Calc_file_domains(ADIO_File fd,
  29                                           ADIO_Offset *st_offsets,
  30                                           ADIO_Offset *end_offsets,
  31                                           int          nprocs,
  32                                           int          nprocs_for_coll,
  33                                           ADIO_Offset *min_st_offset_ptr,
  34                                           ADIO_Offset **fd_start_ptr,
  35                                           ADIO_Offset **fd_end_ptr,
  36                                           ADIO_Offset *fd_size_ptr,
  37                   void        *fs_ptr);
  38 
  39     /* overriding ADIOI_Calc_aggregator() for the default implementation is specific for
  40        static file domain partitioning */
  41     int ADIOI_GPFS_Calc_aggregator(ADIO_File fd,
  42                                   ADIO_Offset off,
  43                                   ADIO_Offset min_off,
  44                                   ADIO_Offset *len,
  45                                   ADIO_Offset fd_size,
  46                                   ADIO_Offset *fd_start,
  47                                   ADIO_Offset *fd_end);
  48 
  49     /* overriding ADIOI_Calc_my_req for the default implementation is specific for
  50        static file domain partitioning */
  51     void ADIOI_GPFS_Calc_my_req ( ADIO_File fd, ADIO_Offset *offset_list, ADIO_Offset *len_list,
  52                                  int contig_access_count, ADIO_Offset
  53                                  min_st_offset, ADIO_Offset *fd_start,
  54                                  ADIO_Offset *fd_end, ADIO_Offset fd_size,
  55                                  int nprocs,
  56                                  int *count_my_req_procs_ptr,
  57                                  int **count_my_req_per_proc_ptr,
  58                                  ADIOI_Access **my_req_ptr,
  59                                  int **buf_idx_ptr);
  60 
  61     /*
  62      * ADIOI_Calc_others_req
  63      *
  64      * param[in]  count_my_req_procs        Number of processes whose file domain my
  65      *                                        request touches.
  66      * param[in]  count_my_req_per_proc     count_my_req_per_proc[i] gives the no. of
  67      *                                        contig. requests of this process in
  68      *                                        process i's file domain.
  69      * param[in]  my_req                    A structure defining my request
  70      * param[in]  nprocs                    Number of nodes in the block
  71      * param[in]  myrank                    Rank of this node
  72      * param[out] count_others_req_proc_ptr Number of processes whose requests lie in
  73      *                                        my process's file domain (including my
  74      *                                        process itself)
  75      * param[out] others_req_ptr            Array of other process' requests that lie
  76      *                                        in my process's file domain
  77      */
  78      void ADIOI_GPFS_Calc_others_req(ADIO_File fd, int count_my_req_procs,
  79                                     int *count_my_req_per_proc,
  80                                     ADIOI_Access *my_req,
  81                                     int nprocs, int myrank,
  82                                     int *count_others_req_procs_ptr,
  83                                     ADIOI_Access **others_req_ptr);
  84 
  85 
  86 #endif  /* AD_GPFS_AGGRS_H_ */

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