|
8 | 8 | #include "mpi.h" |
9 | 9 |
|
10 | 10 | #include "hdf5.h" |
11 | | -#include "hdf5_hl.h" |
| 11 | +#include "hdf5_hl.h" |
12 | 12 |
|
13 | 13 | #ifdef RECORDER_WITH_PNETCDF |
14 | 14 | #include "pnetcdf.h" |
|
47 | 47 | #define H5O_info2_t int |
48 | 48 | #define H5L_info1_t int |
49 | 49 | #define H5L_info2_t int |
50 | | -#define H5O_iterate1_t int |
51 | | -#define H5O_iterate2_t int |
| 50 | +#define H5O_iterate1_t int |
| 51 | +#define H5O_iterate2_t int |
52 | 52 | #define H5L_iterate2_t int |
53 | 53 | #define H5VL_class_value_t int |
54 | 54 | #define H5O_native_info_t int |
55 | 55 | #define H5VL_subclass_t int |
56 | 56 | #define H5R_ref_t int |
57 | | -#define H5D_chunk_iter_op_t int |
58 | 57 | #endif /* H5_VERS_MINOR < 12 */ |
59 | 58 |
|
| 59 | +#if H5_VERS_MINOR < 13 |
| 60 | +#define H5D_chunk_iter_op_t int |
| 61 | +#endif /* H5_VERS_MINOR < 13 */ |
| 62 | + |
60 | 63 | #if H5_VERS_MINOR < 14 |
61 | 64 | #define H5_atclose_func_t int |
62 | 65 | #define H5ES_err_info_t int |
@@ -101,8 +104,8 @@ bool gotcha_netcdf_tracing(); |
101 | 104 |
|
102 | 105 | /** |
103 | 106 | * WRAPPER_TYPE: type of function pointer of the wrapper |
104 | | - * WRAPPEE_HANDLE: wrapee handle name |
105 | | - * WRAPPER_NAME: wrapper name |
| 107 | + * WRAPPEE_HANDLE: wrapee handle name |
| 108 | + * WRAPPER_NAME: wrapper name |
106 | 109 | */ |
107 | 110 | #define WRAPPER_TYPE(func) fptr_type_##func |
108 | 111 | #define WRAPPEE_HANDLE(func) wrappee_handle_##func |
@@ -135,8 +138,8 @@ bool gotcha_netcdf_tracing(); |
135 | 138 | * gotcha_get_wrappee() to get the correct pointer. |
136 | 139 | * Otherwise, simply return the acutal funciton pointer. |
137 | 140 | * |
138 | | - * The _NOCHECK version assumes the function has been |
139 | | - * wrapped by GOTCHA library (i.e. function will be |
| 141 | + * The _NOCHECK version assumes the function has been |
| 142 | + * wrapped by GOTCHA library (i.e. function will be |
140 | 143 | * intercepted by Recorder). Caller of this version must |
141 | 144 | * make sure of this! |
142 | 145 | */ |
@@ -366,7 +369,7 @@ GOTCHA_WRAP(MPI_Cart_sub, int, (MPI_Comm comm, const int remain_dims[], MPI_Comm |
366 | 369 | GOTCHA_WRAP(MPI_Comm_split_type, int, (MPI_Comm comm, int split_type, int key, MPI_Info info, MPI_Comm *newcomm)); |
367 | 370 |
|
368 | 371 |
|
369 | | -// HDF5 |
| 372 | +// HDF5 |
370 | 373 | GOTCHA_WRAP(H5Dread, herr_t, (hid_t dset_id, hid_t mem_type_id, hid_t mem_space_id, hid_t file_space_id, hid_t dxpl_id, void *buf)); |
371 | 374 | GOTCHA_WRAP(H5Adelete_by_idx, herr_t, (hid_t loc_id, const char *obj_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id)); |
372 | 375 | GOTCHA_WRAP(H5Fflush, herr_t, (hid_t object_id, H5F_scope_t scope)); |
|
0 commit comments