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 \
66 print_mpi_io_hints \
77 mpi_tag_ub \
88 fileview_subarray \
9- ghost_cell
9+ ghost_cell \
10+ indexed_fsize \
11+ hindexed_fsize \
12+ nvars
1013
1114all : $(check_PROGRAMS )
1215
Original file line number Diff line number Diff line change 2020 cells are the elements in the local array that are not written to the file.
2121 This example shows how to define an MPI derived data type to describe a 2D
2222 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.
2437
2538### To compile
2639* 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"
1212for f in ${check_PROGRAMS} ; do
1313 if test " $f " = " print_mpi_io_hints" ; then
1414 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"
1521 fi
1622 CMD=" ${MPIRUN} ./$f ${OPTS} "
1723 echo " ==========================================================="
You can’t perform that action at this time.
0 commit comments