00001
00002
00003
00009
00010
00011
00012
00013
00014
00015 #ifndef AD_BGL_INCLUDE
00016 #define AD_BGL_INCLUDE
00017
00018 #include <unistd.h>
00019 #include <stdlib.h>
00020 #include <sys/types.h>
00021 #include <fcntl.h>
00022 #include "adio.h"
00023
00024 #ifdef HAVE_SIGNAL_H
00025 #include <signal.h>
00026 #endif
00027 #ifdef HAVE_AIO_H
00028 #include <aio.h>
00029 #endif
00030
00031 #if 0
00032 int ADIOI_BGL_aio(ADIO_File fd, void *buf, int len, ADIO_Offset offset,
00033 int wr, void *handle);
00034 #endif
00035
00036 void ADIOI_BGL_Open(ADIO_File fd, int *error_code);
00037
00038 void ADIOI_BGL_Close(ADIO_File fd, int *error_code);
00039
00040 void ADIOI_BGL_ReadContig(ADIO_File fd, void *buf, int count,
00041 MPI_Datatype datatype, int file_ptr_type,
00042 ADIO_Offset offset, ADIO_Status *status, int
00043 *error_code);
00044 void ADIOI_BGL_WriteContig(ADIO_File fd, void *buf, int count,
00045 MPI_Datatype datatype, int file_ptr_type,
00046 ADIO_Offset offset, ADIO_Status *status, int
00047 *error_code);
00048 #if 0
00049 void ADIOI_BGL_IwriteContig(ADIO_File fd, void *buf, int count,
00050 MPI_Datatype datatype, int file_ptr_type,
00051 ADIO_Offset offset, ADIO_Request *request, int
00052 *error_code);
00053 void ADIOI_BGL_IreadContig(ADIO_File fd, void *buf, int count,
00054 MPI_Datatype datatype, int file_ptr_type,
00055 ADIO_Offset offset, ADIO_Request *request, int
00056 *error_code);
00057 int ADIOI_BGL_ReadDone(ADIO_Request *request, ADIO_Status *status, int
00058 *error_code);
00059 int ADIOI_BGL_WriteDone(ADIO_Request *request, ADIO_Status *status, int
00060 *error_code);
00061 void ADIOI_BGL_ReadComplete(ADIO_Request *request, ADIO_Status *status, int
00062 *error_code);
00063 void ADIOI_BGL_WriteComplete(ADIO_Request *request, ADIO_Status *status,
00064 int *error_code);
00065 #endif
00066 void ADIOI_BGL_Fcntl(ADIO_File fd, int flag, ADIO_Fcntl_t *fcntl_struct, int
00067 *error_code);
00068 void ADIOI_BGL_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code);
00069
00070 void ADIOI_BGL_WriteStrided(ADIO_File fd, void *buf, int count,
00071 MPI_Datatype datatype, int file_ptr_type,
00072 ADIO_Offset offset, ADIO_Status *status, int
00073 *error_code);
00074 void ADIOI_BGL_ReadStrided(ADIO_File fd, void *buf, int count,
00075 MPI_Datatype datatype, int file_ptr_type,
00076 ADIO_Offset offset, ADIO_Status *status, int
00077 *error_code);
00078
00079 void ADIOI_BGL_ReadStridedColl(ADIO_File fd, void *buf, int count,
00080 MPI_Datatype datatype, int file_ptr_type,
00081 ADIO_Offset offset, ADIO_Status *status, int
00082 *error_code);
00083
00084 void ADIOI_BGL_WriteStridedColl(ADIO_File fd, void *buf, int count,
00085 MPI_Datatype datatype, int file_ptr_type,
00086 ADIO_Offset offset, ADIO_Status *status, int
00087 *error_code);
00088
00089 void ADIOI_BGL_Get_shared_fp(ADIO_File fd, int size, ADIO_Offset *shared_fp, int *error_code);
00090 void ADIOI_BGL_Set_shared_fp(ADIO_File fd, ADIO_Offset offset, int *error_code);
00091
00092 void ADIOI_BGL_Flush(ADIO_File fd, int *error_code);
00093
00094 #include "ad_bgl_tuning.h"
00095
00096
00097 #endif