-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdataset.h
63 lines (46 loc) · 1.87 KB
/
dataset.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/* hdf5-iotest -- simple I/O performance tester for HDF5
SPDX-License-Identifier: BSD-3-Clause
Copyright (C) 2020, The HDF Group
hdf5-iotest is released under the New BSD license (see COPYING).
Go to the project home page for more info:
https://github.com/HDFGroup/hdf5-iotest
*/
#ifndef DATASET_H
#define DATASET_H
#include "configuration.h"
#include "hdf5.h"
typedef struct time_step time_step;
struct time_step {
hid_t es_meta_create;
hid_t es_meta_close;
hid_t es_data;
hid_t es_meta_data;
};
extern hid_t create_dcpl(const configuration* config, unsigned int coll_mpi_io_flg);
extern hid_t create_dataset(const configuration* config,
hid_t file,
const char* name,
hid_t lcpl,
hid_t dapl,
unsigned int coll_mpi_io_flg,
time_step *ts);
extern int create_selection(const configuration* config,
hid_t fspace,
const int proc_row,
const int proc_col,
const unsigned int step,
const unsigned int array);
extern void init_write_buffer(double wbuf[],
const size_t* my_rows,
const size_t* my_cols,
size_t d[],
size_t o[]);
extern void verify_read_buffer(double* rbuf,
const size_t* my_rows,
const size_t* my_cols,
size_t d[],
size_t o[]);
extern void async_sleep(hid_t file_id,
hid_t fapl,
duration sleep_time);
#endif