forked from open-mpi/ompi
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mpi adapt Oceanstor pacific interface
- Loading branch information
Showing
45 changed files
with
5,963 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
## -*- Mode: Makefile; -*- | ||
## vim: set ft=automake : | ||
## | ||
## (C) 2017 by DataDirect Networks | ||
## See COPYRIGHT in top-level directory. | ||
## | ||
|
||
if BUILD_AD_OCEANFS | ||
|
||
noinst_HEADERS += adio/ad_oceanfs/ad_oceanfs.h \ | ||
adio/ad_oceanfs/ad_oceanfs_common.h \ | ||
adio/ad_oceanfs/ad_oceanfs_file.h \ | ||
adio/ad_oceanfs/ad_oceanfs_pub.h \ | ||
adio/ad_oceanfs/ad_oceanfs_tuning.h \ | ||
adio/ad_oceanfs/ad_oceanfs_group_tuning.h \ | ||
adio/ad_oceanfs/ad_oceanfs_aggrs.h \ | ||
adio/ad_oceanfs/mpi_fs_intf.h | ||
romio_other_sources += \ | ||
adio/ad_oceanfs/ad_oceanfs.c \ | ||
adio/ad_oceanfs/ad_oceanfs_close.c \ | ||
adio/ad_oceanfs/ad_oceanfs_common.c \ | ||
adio/ad_oceanfs/ad_oceanfs_fcntl.c \ | ||
adio/ad_oceanfs/ad_oceanfs_io.c \ | ||
adio/ad_oceanfs/ad_oceanfs_open.c \ | ||
adio/ad_oceanfs/ad_oceanfs_file.c \ | ||
adio/ad_oceanfs/ad_oceanfs_pub.c \ | ||
adio/ad_oceanfs/ad_oceanfs_tuning.c \ | ||
adio/ad_oceanfs/ad_oceanfs_group_tuning.c \ | ||
adio/ad_oceanfs/ad_oceanfs_aggrs.c \ | ||
adio/ad_oceanfs/ad_oceanfs_rdstr.c \ | ||
adio/ad_oceanfs/ad_oceanfs_rdcoll.c \ | ||
adio/ad_oceanfs/ad_oceanfs_wrcoll.c \ | ||
adio/ad_oceanfs/ad_oceanfs_resize.c \ | ||
adio/ad_oceanfs/ad_oceanfs_hints.c \ | ||
adio/ad_oceanfs/ad_oceanfs_view.c \ | ||
adio/ad_oceanfs/ad_oceanfs_viewio.c \ | ||
adio/ad_oceanfs/mpi_fs_intf.c | ||
|
||
endif BUILD_AD_OCEANFS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include "ad_oceanfs.h" | ||
#include "adioi.h" | ||
|
||
struct ADIOI_Fns_struct ADIO_OCEANFS_operations = { | ||
ADIOI_OCEANFS_Open, /* Open */ | ||
ADIOI_GEN_OpenColl, /* OpenColl */ | ||
ADIOI_OCEANFS_ReadContig, /* ReadContig */ | ||
ADIOI_OCEANFS_WriteContig, /* WriteContig */ | ||
ADIOI_OCEANFS_ReadStridedColl, /* ReadStridedColl */ | ||
ADIOI_OCEANFS_WriteStridedColl, /* WriteStridedColl */ | ||
ADIOI_GEN_SeekIndividual, /* SeekIndividual */ | ||
ADIOI_OCEANFS_Fcntl, /* Fcntl */ | ||
ADIOI_OCEANFS_SetInfo, /* SetInfo */ | ||
ADIOI_OCEANFS_ReadStrided, /* ReadStrided */ | ||
ADIOI_GEN_WriteStrided, /* WriteStrided */ | ||
ADIOI_OCEANFS_Close, /* Close */ | ||
ADIOI_FAKE_IreadContig, /* IreadContig */ | ||
ADIOI_FAKE_IwriteContig, /* IwriteContig */ | ||
ADIOI_FAKE_IODone, /* ReadDone */ | ||
ADIOI_FAKE_IODone, /* WriteDone */ | ||
ADIOI_FAKE_IOComplete, /* ReadComplete */ | ||
ADIOI_FAKE_IOComplete, /* WriteComplete */ | ||
ADIOI_FAKE_IreadStrided, /* IreadStrided */ | ||
ADIOI_FAKE_IwriteStrided, /* IwriteStrided */ | ||
ADIOI_GEN_Flush, /* Flush */ | ||
ADIOI_OCEANFS_Resize, /* Resize */ | ||
ADIOI_GEN_Delete, /* Delete */ | ||
ADIOI_GEN_Feature, /* Feature */ | ||
ADIOI_OCEANFS_PREFIX, | ||
ADIOI_GEN_IreadStridedColl, /* IreadStridedColl */ | ||
ADIOI_GEN_IwriteStridedColl /* IwriteStridedColl */ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#ifndef AD_OCEANFS_H_INCLUDED | ||
#define AD_OCEANFS_H_INCLUDED | ||
|
||
#include "adio.h" | ||
#include "ad_oceanfs_tuning.h" | ||
|
||
#define OCEANFS_READ 0 | ||
#define OCEANFS_WRITE 1 | ||
#define OCEANFS_READ_STRIDED 2 | ||
#define OCEANFS_READ_COLL 3 | ||
#define OCEANFS_WRITE_STRIDED 4 | ||
#define OCEANFS_WRITE_COLL 5 | ||
|
||
#define ADIOI_OCEANFS_PREFIX "oceanfs:" | ||
#define ADIOI_OCEANFS_PREFIX_LEN (sizeof(ADIOI_OCEANFS_PREFIX) - 1) | ||
|
||
void ADIOI_OCEANFS_Open(ADIO_File fd, int *error_code); | ||
|
||
void ADIOI_OCEANFS_Close(ADIO_File fd, int *error_code); | ||
|
||
void ADIOI_OCEANFS_ReadContig(ADIO_File fd, void *buf, int count, MPI_Datatype datatype, int file_ptr_type, | ||
ADIO_Offset offset, ADIO_Status *status, int *error_code); | ||
|
||
void ADIOI_OCEANFS_WriteContig(ADIO_File fd, const void *buf, int count, MPI_Datatype datatype, int file_ptr_type, | ||
ADIO_Offset offset, ADIO_Status *status, int *error_code); | ||
|
||
void ADIOI_OCEANFS_ReadStrided(ADIO_File fd, void *buf, int count, MPI_Datatype datatype, int file_ptr_type, | ||
ADIO_Offset offset, ADIO_Status *status, int *error_code); | ||
|
||
void ADIOI_OCEANFS_ReadStridedColl(ADIO_File fd, void *buf, int count, MPI_Datatype datatype, int file_ptr_type, | ||
ADIO_Offset offset, ADIO_Status *status, int *error_code); | ||
|
||
void ADIOI_OCEANFS_WriteStridedColl(ADIO_File fd, const void *buf, int count, MPI_Datatype datatype, int file_ptr_type, | ||
ADIO_Offset offset, ADIO_Status *status, int *error_code); | ||
|
||
void ADIOI_OCEANFS_Fcntl(ADIO_File fd, int flag, ADIO_Fcntl_t *fcntl_struct, int *error_code); | ||
|
||
void ADIOI_OCEANFS_Resize(ADIO_File fd, ADIO_Offset size, int *error_code); | ||
|
||
void ADIOI_OCEANFS_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code); | ||
|
||
int ADIOI_OCEANFS_set_view(ADIO_File fd, int *error_code); | ||
|
||
int ADIOI_OCEANFS_StridedViewIO(ADIO_File fd, void *buf, int count, MPI_Datatype datatype, int file_ptr_type, | ||
ADIO_Offset offset, ADIO_Status *status, int io_flag, int *error_code); | ||
int ADIOI_OCEANFS_Set_lock(FDTYPE fd, int cmd, int type, ADIO_Offset offset, int whence, ADIO_Offset len); | ||
|
||
#endif /* AD_OCEANFS_H_INCLUDED */ |
Oops, something went wrong.