You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update main README with documentation for PRL, LDC, RDC and CS read patterns. (#120)
* Add CS, PRL, RDC and LDC patterns and supporting config
* Add readme for the new patterns
* Bugfix: Checks on parameter values separated for different access patterns
* Add and modify code documentation
* Remove unused parameters from functions
* Update main README. Minor fixes in h5bench_patterns README
* Fix HDF5 Terminology in readme and docs
Co-authored-by: Jean Luca Bez <[email protected]>
For ``MEM_PATTERN``, ``CONTIG`` represents arrays of basic data types (i.e., int, float, double, etc.); ``INTERLEAVED`` represents an array of structure (AOS) where each array element is a C struct; and ``STRIDED`` represents a few elements in an array of basic data types that are separated by a constant stride. ``STRIDED`` is supported only for 1D arrays.
For the ``PARTIAL`` option, the benchmark will read only the first ``TO_READ_NUM_PARTICLES`` particles.
47
+
For the ``PARTIAL`` option, the benchmark will read only the first ``TO_READ_NUM_PARTICLES`` particles. ``PRL``, ``LDC``, ``RDC`` and ``CS`` options work with a single MPI process. In case multiple processes are used, only the root performs the read operations and all other processes skip the reads.
44
48
45
49
46
50
Asynchronous Settings
@@ -193,6 +197,38 @@ Contiguously read the first ``TO_READ_NUM_PARTICLES`` elements:
193
197
'FILE_PATTERN': 'STRIDED'
194
198
'READ_OPTION': 'STRIDED'
195
199
200
+
- 4 patterns for 2D read
201
+
202
+
1. PRL: Refers to the Peripheral data access pattern. Data is read from the periphery of the 2D dataset, which is a frame of fixed width and height around the dataset.
203
+
.. code-block:: none
204
+
205
+
'MEM_PATTERN': 'CONTIG'
206
+
'FILE_PATTERN': 'CONTIG'
207
+
'READ_OPTION': 'PRL'
208
+
209
+
2. RDC: Refers to the Right Diagonal Corner data access pattern. Data is read from two identical blocks of fixed sides, one in the top right corner and the other in the bottom left corner in the 2D HDF5 dataset
210
+
.. code-block:: none
211
+
212
+
'MEM_PATTERN': 'CONTIG'
213
+
'FILE_PATTERN': 'CONTIG'
214
+
'READ_OPTION': 'RDC'
215
+
216
+
3. LDC: Refers to the Left Diagonal Corner data access pattern. Data is read from two identical blocks of fixed sides, one in the top left corner and the other in the bottom right corner in the 2D HDF5 dataset
217
+
.. code-block:: none
218
+
219
+
'MEM_PATTERN': 'CONTIG'
220
+
'FILE_PATTERN': 'CONTIG'
221
+
'READ_OPTION': 'LDC'
222
+
223
+
4. CS: Refers to the Cross Stencil data access pattern. A block of fixed sides is used to read data from an HDF5 dataset. This block is given a fixed stride in each dimension and data till end of dataset is read.
Copy file name to clipboardExpand all lines: h5bench_patterns/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
## Additions to H5Bench_read
2
2
4 new patterns are added to the h5bench read benchmark:
3
-
1. CS: Refers to the Cross Stencil data access pattern. A block of fixed sides is used to read data from HDF5. This block is given a fixed stride in each dimension and data till end of file is read.
4
-
2. LDC: Refers to the Left Diagonal Corner data access pattern. Data is read from two identical blocks of fixed sides, one in the top left corner and the other in the bottom right corner in the 2D HDF5 file
5
-
3. RDC: Refers to the Right Diagonal Corner data access pattern. Data is read from two identical blocks of fixed sides, one in the top right corner and the other in the bottom left corner in the 2D HDF5 file
6
-
4. PRL: Refers to the Peripheral data access pattern. Data is read from the periphery of the file, which is a frame of fixed width and height around the file.
3
+
1. CS: Refers to the Cross Stencil data access pattern. A block of fixed sides is used to read data from an HDF5 dataset. This block is given a fixed stride in each dimension and data till end of dataset is read.
4
+
2. LDC: Refers to the Left Diagonal Corner data access pattern. Data is read from two identical blocks of fixed sides, one in the top left corner and the other in the bottom right corner in the 2D HDF5 dataset
5
+
3. RDC: Refers to the Right Diagonal Corner data access pattern. Data is read from two identical blocks of fixed sides, one in the top right corner and the other in the bottom left corner in the 2D HDF5 dataset
6
+
4. PRL: Refers to the Peripheral data access pattern. Data is read from the periphery of the dataset, which is a frame of fixed width and height around the dataset.
7
7
8
8
These patterns work with a single MPI process. In case multiple processes are used, only the root performs the read operations and all other processes skip the reads. Illustrations of the patterns are given in the table below:
9
9
@@ -19,8 +19,8 @@ Steps for running these benchmarks are the same as the other benchmarks. All par
19
19
| --------- | ----------- |
20
20
|`BLOCK_SIZE`| Size of the block of data along `dim_1`|
21
21
|`BLOCK_SIZE_2`| Size of the block of data along `dim_2`|
22
-
|`STRIDE_SIZE`|Size of the block of data along `dim_1`|
23
-
|`STRIDE_SIZE_2`|Size of the block of data along `dim_2`|
22
+
|`STRIDE_SIZE`|Stride of the block of data along `dim_1`|
23
+
|`STRIDE_SIZE_2`|Stride of the block of data along `dim_2`|
0 commit comments