ad_gpfs.c 2.01 KB
Newer Older
1
2
3
4
/* ---------------------------------------------------------------- */
/* (C)Copyright IBM Corp.  2007, 2008                               */
/* ---------------------------------------------------------------- */
/**
5
 * \file ad_gpfs.c
6
7
8
9
10
11
12
13
 * \brief ???
 */

/* -*- Mode: C; c-basic-offset:4 ; -*- */
/* 
 *   Copyright (C) 2001 University of Chicago. 
 *   See COPYRIGHT notice in top-level directory.
 */
14
#include "ad_gpfs.h"
15
16
17
18

/* adioi.h has the ADIOI_Fns_struct define */
#include "adioi.h"

19
20
struct ADIOI_Fns_struct ADIO_GPFS_operations = {
    ADIOI_GPFS_Open, /* Open */
21
    ADIOI_GEN_OpenColl, /* Collective open */
22
23
    ADIOI_GEN_ReadContig, /* ReadContig */
    ADIOI_GEN_WriteContig, /* WriteContig */
24
25
    ADIOI_GPFS_ReadStridedColl, /* ReadStridedColl */
    ADIOI_GPFS_WriteStridedColl, /* WriteStridedColl */
26
    ADIOI_GEN_SeekIndividual, /* SeekIndividual */
27
    ADIOI_GEN_Fcntl, /* Fcntl */
28
29
#if defined(BGQPLATFORM) || defined(PEPLATFORM)
    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
34
    ADIOI_GEN_ReadStrided, /* ReadStrided */
    ADIOI_GEN_WriteStrided, /* WriteStrided */
35
    ADIOI_GPFS_Close, /* Close */
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifdef ROMIO_HAVE_WORKING_AIO
#warning Consider BG support for NFS before enabling this.
    ADIOI_GEN_IreadContig, /* IreadContig */
    ADIOI_GEN_IwriteContig, /* IwriteContig */
#else
    ADIOI_FAKE_IreadContig, /* IreadContig */
    ADIOI_FAKE_IwriteContig, /* IwriteContig */
#endif
    ADIOI_GEN_IODone, /* ReadDone */
    ADIOI_GEN_IODone, /* WriteDone */
    ADIOI_GEN_IOComplete, /* ReadComplete */
    ADIOI_GEN_IOComplete, /* WriteComplete */
    ADIOI_GEN_IreadStrided, /* IreadStrided */
    ADIOI_GEN_IwriteStrided, /* IwriteStrided */
50
    ADIOI_GPFS_Flush, /* Flush */
51
52
53
    ADIOI_GEN_Resize, /* Resize */
    ADIOI_GEN_Delete, /* Delete */
    ADIOI_GEN_Feature, /* Features */
54
55
56
57
58
59
60
#ifdef BGQPLATFORM
    "GPFS+BGQ: IBM GPFS for Blue Gene",
#elif PEPLATFORM
    "GPFS+PE: IBM GPFS for PE",
#else
    "GPFS: IBM GPFS"
#endif
61
};