root/ompi/mca/io/romio321/romio/adio/ad_gpfs/ad_gpfs.c

/* [<][>][^][v][top][bottom][index][help] */
   1 /* ---------------------------------------------------------------- */
   2 /* (C)Copyright IBM Corp.  2007, 2008                               */
   3 /* ---------------------------------------------------------------- */
   4 /**
   5  * \file ad_gpfs.c
   6  * \brief ???
   7  */
   8 
   9 /* -*- Mode: C; c-basic-offset:4 ; -*- */
  10 /* 
  11  *   Copyright (C) 2001 University of Chicago. 
  12  *   See COPYRIGHT notice in top-level directory.
  13  */
  14 #include "ad_gpfs.h"
  15 
  16 /* adioi.h has the ADIOI_Fns_struct define */
  17 #include "adioi.h"
  18 
  19 struct ADIOI_Fns_struct ADIO_GPFS_operations = {
  20     ADIOI_GPFS_Open, /* Open */
  21     ADIOI_GEN_OpenColl, /* Collective open */
  22     ADIOI_GEN_ReadContig, /* ReadContig */
  23     ADIOI_GEN_WriteContig, /* WriteContig */
  24     ADIOI_GPFS_ReadStridedColl, /* ReadStridedColl */
  25     ADIOI_GPFS_WriteStridedColl, /* WriteStridedColl */
  26     ADIOI_GEN_SeekIndividual, /* SeekIndividual */
  27     ADIOI_GEN_Fcntl, /* Fcntl */
  28 #if defined(BGQPLATFORM) || defined(PEPLATFORM)
  29     ADIOI_GPFS_SetInfo, /* SetInfo for BlueGene or PE */
  30 #else
  31     ADIOI_GEN_SetInfo, /* SetInfo for any platform besides BlueGene or PE */
  32 #endif
  33     ADIOI_GEN_ReadStrided, /* ReadStrided */
  34     ADIOI_GEN_WriteStrided, /* WriteStrided */
  35     ADIOI_GPFS_Close, /* Close */
  36 #ifdef ROMIO_HAVE_WORKING_AIO
  37 #warning Consider BG support for NFS before enabling this.
  38     ADIOI_GEN_IreadContig, /* IreadContig */
  39     ADIOI_GEN_IwriteContig, /* IwriteContig */
  40 #else
  41     ADIOI_FAKE_IreadContig, /* IreadContig */
  42     ADIOI_FAKE_IwriteContig, /* IwriteContig */
  43 #endif
  44     ADIOI_GEN_IODone, /* ReadDone */
  45     ADIOI_GEN_IODone, /* WriteDone */
  46     ADIOI_GEN_IOComplete, /* ReadComplete */
  47     ADIOI_GEN_IOComplete, /* WriteComplete */
  48     ADIOI_GEN_IreadStrided, /* IreadStrided */
  49     ADIOI_GEN_IwriteStrided, /* IwriteStrided */
  50     ADIOI_GPFS_Flush, /* Flush */
  51     ADIOI_GEN_Resize, /* Resize */
  52     ADIOI_GEN_Delete, /* Delete */
  53     ADIOI_GEN_Feature, /* Features */
  54 #ifdef BGQPLATFORM
  55     "GPFS+BGQ: IBM GPFS for Blue Gene",
  56 #elif PEPLATFORM
  57     "GPFS+PE: IBM GPFS for PE",
  58 #else
  59     "GPFS: IBM GPFS",
  60 #endif
  61     ADIOI_GEN_IreadStridedColl, /* IreadStridedColl */
  62     ADIOI_GEN_IwriteStridedColl /* IwriteStridedColl */
  63 };

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