File tree Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Expand file tree Collapse file tree 3 files changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ check_PROGRAMS = mpi_file_set_view \
6
6
print_mpi_io_hints \
7
7
mpi_tag_ub \
8
8
fileview_subarray \
9
- ghost_cell
9
+ ghost_cell \
10
+ indexed_fsize \
11
+ hindexed_fsize \
12
+ nvars
10
13
11
14
all : $(check_PROGRAMS )
12
15
Original file line number Diff line number Diff line change 20
20
cells are the elements in the local array that are not written to the file.
21
21
This example shows how to define an MPI derived data type to describe a 2D
22
22
subarray with ghost cells used it in I/O.
23
-
23
+ * indexed_fsize.c
24
+ * Uses a file datatype constructed from multiple subarray datatypes
25
+ concatenated by MPI_Type_indexed(). Each variable is partitioned among
26
+ processes in a 2D block-block fashion. At the end, it checks the file size
27
+ whether or not it is expected.
28
+ * hindexed_fsize.c
29
+ * Uses a file datatype constructed from multiple subarray datatypes
30
+ concatenated by MPI_Type_create_hindexed(). Each variable is partitioned
31
+ among processes in a 2D block-block fashion. At the end, it checks the file
32
+ size whether or not it is expected.
33
+ * nvars.c
34
+ * Makes a single call to collective write and read by using a fileview of
35
+ concatenating multiple subarrays of variables stored in the file and each
36
+ variable is partitioned among processes in a 2D block-block fashion.
24
37
25
38
### To compile
26
39
* Modify file ` Makefile ` if necessary to change the path of MPI C compiler.
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ MPIRUN="mpiexec ${MPIRUN_OPTS} -n 4"
12
12
for f in ${check_PROGRAMS} ; do
13
13
if test " $f " = " print_mpi_io_hints" ; then
14
14
OPTS=" testfile"
15
+ elif test " $f " = " indexed_fsize" ; then
16
+ OPTS=" -q -f testfile"
17
+ elif test " $f " = " nindexed_fsize" ; then
18
+ OPTS=" -q -f testfile"
19
+ elif test " $f " = " nvars" ; then
20
+ OPTS=" -q -r -f testfile"
15
21
fi
16
22
CMD=" ${MPIRUN} ./$f ${OPTS} "
17
23
echo " ==========================================================="
You can’t perform that action at this time.
0 commit comments