root/ompi/mca/io/romio321/romio/adio/ad_pvfs2/ad_pvfs2_io.h

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

INCLUDED FROM


   1 /* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*-
   2  * vim: ts=8 sts=4 sw=4 noexpandtab
   3  *
   4  *   Copyright (C) 2006 University of Chicago. 
   5  *   See COPYRIGHT notice in top-level directory.
   6  */
   7 
   8 /* Contig I/O helper prototypes */
   9 
  10 #define READ 0
  11 #define WRITE 1
  12 
  13 /* #define DEBUG_CONTIG */
  14 /* #define DEBUG_LIST */
  15 /* #define DEBUG_DTYPE */
  16 
  17 /* Contig I/O helper prototypes */
  18 int ADIOI_PVFS2_Contig(ADIO_File fd, void *buf, int count,
  19                        MPI_Datatype datatype, int file_ptr_type,
  20                        ADIO_Offset offset, ADIO_Status *status,
  21                        int *error_code, int rw_type);
  22 
  23 /* List I/O helper prototypes */
  24 int ADIOI_PVFS2_StridedListIO(ADIO_File fd, void *buf, int count,
  25                               MPI_Datatype datatype, int file_ptr_type,
  26                               ADIO_Offset offset, ADIO_Status *status,
  27                               int *error_code, int rw_type);
  28 
  29 int gen_listio_arr(ADIOI_Flatlist_node *flat_buf,
  30                    int *flat_buf_index_p,
  31                    int64_t *cur_flat_buf_reg_off_p,
  32                    int flat_buf_size,
  33                    int flat_buf_extent,
  34                    ADIOI_Flatlist_node *flat_file,
  35                    int *flat_file_index_p,
  36                    int64_t *cur_flat_file_reg_off_p,
  37                    int flat_file_size,
  38                    int flat_file_extent,
  39                    int max_ol_count,
  40                    ADIO_Offset disp,
  41                    int bytes_into_filetype,
  42                    int64_t *bytes_completed,
  43                    int64_t total_io_size,
  44                    int64_t buf_off_arr[],
  45                    int32_t buf_len_arr[],
  46                    int32_t *buf_ol_count_p,
  47                    int64_t file_off_arr[],
  48                    int32_t file_len_arr[],
  49                    int32_t *file_ol_count_p);
  50 
  51 void print_buf_file_ol_pairs(int64_t buf_off_arr[],
  52                              int32_t buf_len_arr[],
  53                              int32_t buf_ol_count,
  54                              int64_t file_off_arr[],
  55                              int32_t file_len_arr[],
  56                              int32_t file_ol_count,
  57                              void *buf,
  58                              int rw_type);
  59 
  60 /* Datatype I/O helper prototypes */
  61 int ADIOI_PVFS2_StridedDtypeIO(ADIO_File fd, void *buf, int count,
  62                                MPI_Datatype datatype, int file_ptr_type,
  63                                ADIO_Offset offset, ADIO_Status *status, 
  64                                int *error_code, int rw_type);
  65 
  66 int convert_named(MPI_Datatype *mpi_dtype,
  67                   PVFS_Request *pvfs_dtype, int combiner);
  68 
  69 void print_dtype_info(int combiner,
  70                       int num_int,
  71                       int num_addr,
  72                       int num_dtype,
  73                       int *arr_int,
  74                       MPI_Aint *arr_addr,
  75                       MPI_Datatype *arr_dtype);
  76 
  77 int convert_mpi_pvfs2_dtype(MPI_Datatype *mpi_dtype,
  78                             PVFS_Request *pvfs_dtype);
  79 

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