1
2
3
4
5
6
7
8
9
10 #ifndef MCA_FS_IME_H
11 #define MCA_FS_IME_H
12
13 #include "ompi_config.h"
14 #include "ompi/mca/mca.h"
15 #include "ompi/mca/fs/fs.h"
16 #include "ompi/mca/common/ompio/common_ompio.h"
17
18 extern int mca_fs_ime_priority;
19 extern int mca_fs_ime_lock_algorithm;
20
21 #define FS_IME_LOCK_AUTO 0
22 #define FS_IME_BASE_PRIORITY 20
23 #define FS_IME_INCREASED_PRIORITY 50
24
25 BEGIN_C_DECLS
26
27 int mca_fs_ime_component_init_query(bool enable_progress_threads,
28 bool enable_mpi_threads);
29 struct mca_fs_base_module_1_0_0_t *
30 mca_fs_ime_component_file_query (ompio_file_t *fh, int *priority);
31 int mca_fs_ime_component_file_unquery (ompio_file_t *file);
32
33 int mca_fs_ime_module_init (ompio_file_t *file);
34 int mca_fs_ime_module_finalize (ompio_file_t *file);
35
36 int mca_fs_ime_get_mpi_err(int errno_val);
37 int mca_fs_ime_native_fini();
38
39 OMPI_MODULE_DECLSPEC extern mca_fs_base_component_2_0_0_t mca_fs_ime_component;
40
41
42
43
44
45
46 int mca_fs_ime_file_open (struct ompi_communicator_t *comm,
47 const char *filename,
48 int amode,
49 struct opal_info_t *info,
50 ompio_file_t *fh);
51
52 int mca_fs_ime_file_close (ompio_file_t *fh);
53
54 int mca_fs_ime_file_delete (char *filename,
55 struct opal_info_t *info);
56
57 int mca_fs_ime_file_set_size (ompio_file_t *fh,
58 OMPI_MPI_OFFSET_TYPE size);
59
60 int mca_fs_ime_file_get_size (ompio_file_t *fh,
61 OMPI_MPI_OFFSET_TYPE *size);
62
63 int mca_fs_ime_file_sync (ompio_file_t *fh);
64
65 int mca_fs_ime_file_seek (ompio_file_t *fh,
66 OMPI_MPI_OFFSET_TYPE offset,
67 int whence);
68
69
70
71
72
73
74 END_C_DECLS
75
76 #endif