|
| 1 | +/* -*- Mode: C; c-basic-offset:4 ; -*- */ |
| 2 | +/* |
| 3 | + * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana |
| 4 | + * University Research and Technology |
| 5 | + * Corporation. All rights reserved. |
| 6 | + * Copyright (c) 2004-2007 The University of Tennessee and The University |
| 7 | + * of Tennessee Research Foundation. All rights |
| 8 | + * reserved. |
| 9 | + * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, |
| 10 | + * University of Stuttgart. All rights reserved. |
| 11 | + * Copyright (c) 2004-2005 The Regents of the University of California. |
| 12 | + * All rights reserved. |
| 13 | + * Copyright (c) 2008-2016 University of Houston. All rights reserved. |
| 14 | + * $COPYRIGHT$ |
| 15 | + * |
| 16 | + * Additional copyrights may follow |
| 17 | + * |
| 18 | + * $HEADER$ |
| 19 | + */ |
| 20 | + |
| 21 | +#ifndef MCA_COMMON_OMPIO_H |
| 22 | +#define MCA_COMMON_OMPIO_H |
| 23 | + |
| 24 | +#include "ompi/mca/common/ompio/common_ompio_print_queue.h" |
| 25 | +#include "ompi/mca/io/ompio/io_ompio.h" |
| 26 | + |
| 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 | +OMPI_DECLSPEC int mca_common_ompio_file_open (ompi_communicator_t *comm, const char *filename, |
| 78 | + int amode, ompi_info_t *info, |
| 79 | + mca_io_ompio_file_t *ompio_fh, bool use_sharedfp); |
| 80 | + |
| 81 | +OMPI_DECLSPEC int mca_common_ompio_file_close (mca_io_ompio_file_t *ompio_fh); |
| 82 | +OMPI_DECLSPEC int mca_common_ompio_file_get_size (mca_io_ompio_file_t *ompio_fh, OMPI_MPI_OFFSET_TYPE *size); |
| 83 | +OMPI_DECLSPEC int mca_common_ompio_file_get_position (mca_io_ompio_file_t *fh,OMPI_MPI_OFFSET_TYPE *offset); |
| 84 | +OMPI_DECLSPEC int mca_common_ompio_set_explicit_offset (mca_io_ompio_file_t *fh, OMPI_MPI_OFFSET_TYPE offset); |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +#endif /* MCA_COMMON_OMPIO_H */ |
0 commit comments