mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-03 02:32:04 +08:00
5fa81dec82
Purpose: feature Description: allows the option of building the library libhdf-inst.a so that it can link with either the Pablo Trace Libraries or with the Pablo Performance Capture Facility (PCF) Solution: Added code for conditional compilation using the PCF_BUILD flag. When the library is made, the user can specify PABLO_BUILD=PCF which will cause the -DPCF_BUILD to be passed to the compiler. Platforms tested: Solaris, IRIX64
78 lines
3.6 KiB
C
78 lines
3.6 KiB
C
#ifdef PCF_BUILD
|
|
#define MPI_File_open PCF_MPI_File_open
|
|
#define MPI_File_close PCF_MPI_File_close
|
|
#define MPI_File_set_size PCF_MPI_File_set_size
|
|
#define MPI_File_get_size PCF_MPI_File_get_size
|
|
#define MPI_File_set_view PCF_MPI_File_set_view
|
|
#define MPI_File_get_view PCF_MPI_File_get_view
|
|
#define MPI_File_read_at PCF_MPI_File_read_at
|
|
#define MPI_File_read_at_all PCF_MPI_File_read_at_all
|
|
#define MPI_File_write_at PCF_MPI_File_write_at
|
|
#define MPI_File_write_at_all PCF_MPI_File_write_at_all
|
|
#define MPI_File_sync PCF_MPI_File_sync
|
|
|
|
int PCF_MPI_File_open( MPI_Comm comm, char *filename, int amode,
|
|
MPI_Info info, MPI_File *fh );
|
|
int PCF_MPI_File_close( MPI_File *fh );
|
|
int PCF_MPI_File_delete( char *filename, MPI_Info info );
|
|
int PCF_MPI_File_set_size( MPI_File fh, MPI_Offset size );
|
|
int PCF_MPI_File_get_size( MPI_File fh, MPI_Offset *size );
|
|
int PCF_MPI_File_set_view( MPI_File fh, MPI_Offset disp, MPI_Datatype etype,
|
|
MPI_Datatype filetype, char *datarep,
|
|
MPI_Info info );
|
|
int PCF_MPI_File_get_view( MPI_File fh, MPI_Offset *disp,
|
|
MPI_Datatype *etype, MPI_Datatype *filetype,
|
|
char *datarep );
|
|
int PCF_MPI_File_read_at( MPI_File fh, MPI_Offset offset, void *buf,
|
|
int count, MPI_Datatype datatype,
|
|
MPI_Status *status );
|
|
int PCF_MPI_File_read_at_all( MPI_File fh, MPI_Offset offset, void *buf,
|
|
int count, MPI_Datatype datatype,
|
|
MPI_Status *status );
|
|
int PCF_MPI_File_write_at( MPI_File fh, MPI_Offset offset, void *buf,
|
|
int count, MPI_Datatype datatype,
|
|
MPI_Status *status );
|
|
int PCF_MPI_File_write_at_all( MPI_File fh, MPI_Offset offset, void *buf,
|
|
int count, MPI_Datatype datatype,
|
|
MPI_Status *status );
|
|
int PCF_MPI_File_sync( MPI_File fh );
|
|
#else
|
|
#define MPI_File_open HDF_MPI_File_open
|
|
#define MPI_File_close HDF_MPI_File_close
|
|
#define MPI_File_set_size HDF_MPI_File_set_size
|
|
#define MPI_File_get_size HDF_MPI_File_get_size
|
|
#define MPI_File_set_view HDF_MPI_File_set_view
|
|
#define MPI_File_get_view HDF_MPI_File_get_view
|
|
#define MPI_File_read_at HDF_MPI_File_read_at
|
|
#define MPI_File_read_at_all HDF_MPI_File_read_at_all
|
|
#define MPI_File_write_at HDF_MPI_File_write_at
|
|
#define MPI_File_write_at_all HDF_MPI_File_write_at_all
|
|
#define MPI_File_sync HDF_MPI_File_sync
|
|
|
|
int HDF_MPI_File_open( MPI_Comm comm, char *filename, int amode,
|
|
MPI_Info info, MPI_File *fh );
|
|
int HDF_MPI_File_close( MPI_File *fh );
|
|
int HDF_MPI_File_delete( char *filename, MPI_Info info );
|
|
int HDF_MPI_File_set_size( MPI_File fh, MPI_Offset size );
|
|
int HDF_MPI_File_get_size( MPI_File fh, MPI_Offset *size );
|
|
int HDF_MPI_File_set_view( MPI_File fh, MPI_Offset disp, MPI_Datatype etype,
|
|
MPI_Datatype filetype, char *datarep,
|
|
MPI_Info info );
|
|
int HDF_MPI_File_get_view( MPI_File fh, MPI_Offset *disp,
|
|
MPI_Datatype *etype, MPI_Datatype *filetype,
|
|
char *datarep );
|
|
int HDF_MPI_File_read_at( MPI_File fh, MPI_Offset offset, void *buf,
|
|
int count, MPI_Datatype datatype,
|
|
MPI_Status *status );
|
|
int HDF_MPI_File_read_at_all( MPI_File fh, MPI_Offset offset, void *buf,
|
|
int count, MPI_Datatype datatype,
|
|
MPI_Status *status );
|
|
int HDF_MPI_File_write_at( MPI_File fh, MPI_Offset offset, void *buf,
|
|
int count, MPI_Datatype datatype,
|
|
MPI_Status *status );
|
|
int HDF_MPI_File_write_at_all( MPI_File fh, MPI_Offset offset, void *buf,
|
|
int count, MPI_Datatype datatype,
|
|
MPI_Status *status );
|
|
int HDF_MPI_File_sync( MPI_File fh );
|
|
#endif /* PCF_BUILD */
|