Skip to content

Commit ccf76b7

Browse files
committed
moving the internal read/write functions to common/ompio
and update all fs/fcoll/sharedfp components to use these functions.
1 parent 688710d commit ccf76b7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1010
-930
lines changed

ompi/mca/common/ompio/Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ headers = \
2323
common_ompio.h
2424

2525
sources = \
26-
common_ompio_print_queue.c
26+
common_ompio_print_queue.c \
27+
common_ompio_file_read.c \
28+
common_ompio_file_write.c
2729

2830

2931
# To simplify components that link to this library, we will *always*

ompi/mca/common/ompio/common_ompio.h

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,55 @@
2424
#include "ompi/mca/common/ompio/common_ompio_print_queue.h"
2525
#include "ompi/mca/io/ompio/io_ompio.h"
2626

27+
OMPI_DECLSPEC int mca_common_ompio_file_write (mca_io_ompio_file_t *fh, const void *buf, int count,
28+
struct ompi_datatype_t *datatype,
29+
ompi_status_public_t *status);
30+
31+
OMPI_DECLSPEC int mca_common_ompio_file_write_at (mca_io_ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE offset, const void *buf,
32+
int count, struct ompi_datatype_t *datatype,
33+
ompi_status_public_t *status);
34+
35+
OMPI_DECLSPEC int mca_common_ompio_file_iwrite (mca_io_ompio_file_t *fh, const void *buf, int count,
36+
struct ompi_datatype_t *datatype, ompi_request_t **request);
37+
38+
OMPI_DECLSPEC int mca_common_ompio_file_iwrite_at (mca_io_ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE offset,
39+
const void *buf, int count, struct ompi_datatype_t *datatype,
40+
ompi_request_t **request);
41+
42+
OMPI_DECLSPEC int mca_common_ompio_file_write_at_all (mca_io_ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE offset, const void *buf,
43+
int count, struct ompi_datatype_t *datatype,
44+
ompi_status_public_t *status);
45+
46+
47+
OMPI_DECLSPEC int mca_common_ompio_file_iwrite_at_all (mca_io_ompio_file_t *fp, OMPI_MPI_OFFSET_TYPE offset, const void *buf,
48+
int count, struct ompi_datatype_t *datatype, ompi_request_t **request);
49+
50+
OMPI_DECLSPEC int mca_common_ompio_build_io_array ( mca_io_ompio_file_t *fh, int index, int cycles,
51+
size_t bytes_per_cycle, int max_data, uint32_t iov_count,
52+
struct iovec *decoded_iov, int *ii, int *jj, size_t *tbw );
53+
54+
55+
OMPI_DECLSPEC int mca_common_ompio_file_read (mca_io_ompio_file_t *fh, void *buf, int count,
56+
struct ompi_datatype_t *datatype, ompi_status_public_t *status);
57+
58+
OMPI_DECLSPEC int mca_common_ompio_file_read_at (mca_io_ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE offset, void *buf,
59+
int count, struct ompi_datatype_t *datatype,
60+
ompi_status_public_t * status);
61+
62+
OMPI_DECLSPEC int mca_common_ompio_file_iread (mca_io_ompio_file_t *fh, void *buf, int count,
63+
struct ompi_datatype_t *datatype, ompi_request_t **request);
64+
65+
OMPI_DECLSPEC int mca_common_ompio_file_iread_at (mca_io_ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE offset,
66+
void *buf, int count, struct ompi_datatype_t *datatype,
67+
ompi_request_t **request);
68+
69+
OMPI_DECLSPEC int mca_common_ompio_file_read_at_all (mca_io_ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE offset,
70+
void *buf, int count, struct ompi_datatype_t *datatype,
71+
ompi_status_public_t * status);
72+
73+
OMPI_DECLSPEC int mca_common_ompio_file_iread_at_all (mca_io_ompio_file_t *fp, OMPI_MPI_OFFSET_TYPE offset,
74+
void *buf, int count, struct ompi_datatype_t *datatype,
75+
ompi_request_t **request);
76+
77+
2778
#endif /* MCA_COMMON_OMPIO_H */

0 commit comments

Comments
 (0)