IOR
Macros | Functions | Variables
aiori-MPIIO.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include "ior.h"
#include "iordef.h"
#include "aiori.h"
#include "utilities.h"
Include dependency graph for aiori-MPIIO.c:

Go to the source code of this file.

Macros

#define MPIAPI   /* defined as __stdcall on Windows */
 

Functions

static IOR_offset_t SeekOffset (MPI_File, IOR_offset_t, IOR_param_t *)
 
static void * MPIIO_Create (char *, IOR_param_t *)
 
static void * MPIIO_Open (char *, IOR_param_t *)
 
static IOR_offset_t MPIIO_Xfer (int, void *, IOR_size_t *, IOR_offset_t, IOR_param_t *)
 
static void MPIIO_Close (void *, IOR_param_t *)
 
static char * MPIIO_GetVersion ()
 
static void MPIIO_Fsync (void *, IOR_param_t *)
 
int MPIIO_Access (const char *path, int mode, IOR_param_t *param)
 
void MPIIO_Delete (char *testFileName, IOR_param_t *param)
 
IOR_offset_t MPIIO_GetFileSize (IOR_param_t *test, MPI_Comm testComm, char *testFileName)
 

Variables

ior_aiori_t mpiio_aiori
 

Macro Definition Documentation

◆ MPIAPI

#define MPIAPI   /* defined as __stdcall on Windows */

Definition at line 29 of file aiori-MPIIO.c.

Referenced by MPIIO_Xfer().

Function Documentation

◆ MPIIO_Access()

int MPIIO_Access ( const char *  path,
int  mode,
IOR_param_t param 
)

Definition at line 69 of file aiori-MPIIO.c.

Referenced by HDF5_Access(), and NCMPI_Access().

Here is the caller graph for this function:

◆ MPIIO_Close()

static void MPIIO_Close ( void *  fd,
IOR_param_t param 
)
static

◆ MPIIO_Create()

static void * MPIIO_Create ( char *  testFileName,
IOR_param_t param 
)
static

Definition at line 93 of file aiori-MPIIO.c.

References MPIIO_Open().

Here is the call graph for this function:

◆ MPIIO_Delete()

void MPIIO_Delete ( char *  testFileName,
IOR_param_t param 
)

Definition at line 409 of file aiori-MPIIO.c.

References MPI_CHECK.

Referenced by HDF5_Delete(), and NCMPI_Delete().

Here is the caller graph for this function:

◆ MPIIO_Fsync()

static void MPIIO_Fsync ( void *  fdp,
IOR_param_t param 
)
static

Definition at line 382 of file aiori-MPIIO.c.

References EWARN.

Referenced by MPIIO_Xfer().

Here is the caller graph for this function:

◆ MPIIO_GetFileSize()

IOR_offset_t MPIIO_GetFileSize ( IOR_param_t test,
MPI_Comm  testComm,
char *  testFileName 
)

Definition at line 472 of file aiori-MPIIO.c.

References IOR_param_t::filePerProc, MPI_CHECK, rank, testComm, TRUE, and WARN.

Referenced by HDF5_GetFileSize(), and NCMPI_GetFileSize().

Here is the caller graph for this function:

◆ MPIIO_GetVersion()

static char * MPIIO_GetVersion ( )
static

Definition at line 418 of file aiori-MPIIO.c.

References MPI_CHECK.

◆ MPIIO_Open()

static void * MPIIO_Open ( char *  testFileName,
IOR_param_t param 
)
static

Definition at line 101 of file aiori-MPIIO.c.

References IOR_param_t::blockSize, and IOR_param_t::transferSize.

Referenced by MPIIO_Create().

Here is the caller graph for this function:

◆ MPIIO_Xfer()

static IOR_offset_t MPIIO_Xfer ( int  access,
void *  fd,
IOR_size_t buffer,
IOR_offset_t  length,
IOR_param_t param 
)
static

◆ SeekOffset()

static IOR_offset_t SeekOffset ( MPI_File  fd,
IOR_offset_t  offset,
IOR_param_t param 
)
static

Definition at line 430 of file aiori-MPIIO.c.

References IOR_param_t::blockSize, IOR_param_t::filePerProc, MPI_CHECK, IOR_param_t::numTasks, offset, rank, rankOffset, IOR_param_t::transferSize, and IOR_param_t::useFileView.

Referenced by MPIIO_Xfer().

Here is the caller graph for this function:

Variable Documentation

◆ mpiio_aiori

ior_aiori_t mpiio_aiori
Initial value:
= {
.name = "MPIIO",
.create = MPIIO_Create,
.open = MPIIO_Open,
.xfer = MPIIO_Xfer,
.close = MPIIO_Close,
.delete = MPIIO_Delete,
.get_version = MPIIO_GetVersion,
.fsync = MPIIO_Fsync,
.get_file_size = MPIIO_GetFileSize,
.statfs = aiori_posix_statfs,
.access = MPIIO_Access,
}
int aiori_posix_rmdir(const char *path, IOR_param_t *param)
Definition: aiori.c:134
int aiori_posix_mkdir(const char *path, mode_t mode, IOR_param_t *param)
Definition: aiori.c:129
int aiori_posix_statfs(const char *path, ior_aiori_statfs_t *stat_buf, IOR_param_t *param)
Definition: aiori.c:104
static void * MPIIO_Create(char *, IOR_param_t *)
Definition: aiori-MPIIO.c:93
static IOR_offset_t MPIIO_Xfer(int, void *, IOR_size_t *, IOR_offset_t, IOR_param_t *)
Definition: aiori-MPIIO.c:248
void MPIIO_Delete(char *testFileName, IOR_param_t *param)
Definition: aiori-MPIIO.c:409
int MPIIO_Access(const char *path, int mode, IOR_param_t *param)
Definition: aiori-MPIIO.c:69
static char * MPIIO_GetVersion()
Definition: aiori-MPIIO.c:418
static void MPIIO_Fsync(void *, IOR_param_t *)
Definition: aiori-MPIIO.c:382
static void MPIIO_Close(void *, IOR_param_t *)
Definition: aiori-MPIIO.c:391
static void * MPIIO_Open(char *, IOR_param_t *)
Definition: aiori-MPIIO.c:101
int aiori_posix_stat(const char *path, struct stat *buf, IOR_param_t *param)
Definition: aiori.c:144
IOR_offset_t MPIIO_GetFileSize(IOR_param_t *test, MPI_Comm testComm, char *testFileName)
Definition: aiori-MPIIO.c:472

Definition at line 47 of file aiori-MPIIO.c.