Skip to content

Commit 25d053b

Browse files
committed
update files due to new programs added
1 parent 3e8de32 commit 25d053b

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

1114
all: $(check_PROGRAMS)
1215

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,20 @@
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.

test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ MPIRUN="mpiexec ${MPIRUN_OPTS} -n 4"
1212
for 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 "==========================================================="

0 commit comments

Comments
 (0)