11# PnetCDF-python examples
22
33This directory contains example python programs that make use of PnetCDF to
4- perform file I/O. Detailed description of each program and run instructions can
5- be found at the beginning of each file.
4+ perform file I/O in parallel . Detailed description of each program and run
5+ instructions can be found at the beginning of each file.
66
77---
88### Running individual example programs
@@ -20,7 +20,7 @@ be found at the beginning of each file.
2020### Overview of Test Programs
2121
2222* [ MNIST] ( ./MNIST )
23- + This directory contains an example of
23+ + A directory contains an example of
2424 [ MNIST] ( https://github.com/pytorch/examples/tree/main/mnist ) ,
2525 using Pytorch module ` DistributedDataParallel ` for parallel training and
2626 ` PnetCDF-Python ` for reading data from a NetCDF files.
@@ -29,6 +29,19 @@ be found at the beginning of each file.
2929 + A directory contains examples that make use of Pytorch Distributed Data
3030 Parallel module to run python programs in parallel.
3131
32+ * [ nonblocking] ( ./nonblocking )
33+ + A directory contains examples that make use of nonblocking I/O APIs.
34+ * [ nonblocking_write.py] ( ./nonblocking/nonblocking_write.py] ) --
35+ Similar to ` collective_write.py ` , this example uses nonblocking APIs
36+ instead. It creates a netcdf file in CDF-5 format and writes a number of
37+ 3D integer non-record variables.
38+
39+ * [ nonblocking_write_def.py] ( ./nonblocking/nonblocking_write_def.py] ) --
40+ This example is the same as ` nonblocking_write.py ` expect all nonblocking
41+ write requests (calls to ` iput ` and ` bput ` ) are posted in define mode. It
42+ creates a netcdf file in CDF-5 format and writes a number of 3D integer
43+ non-record variables.
44+
3245* [ collective_write.py] ( ./collective_write.py )
3346 + This example writes multiple 3D subarrays to non-record variables of int
3447 type using collective I/O mode.
@@ -43,17 +56,6 @@ be found at the beginning of each file.
4356 shows how to use to ` Variable ` method get_var() read a 2D 4-byte integer
4457 array in parallel.
4558
46- * [ nonblocking_write.py] ( ./nonblocking_write.py )
47- + Similar to ` collective_write.py ` , this example uses nonblocking APIs
48- instead. It creates a netcdf file in CDF-5 format and writes a number of 3D
49- integer non-record variables.
50-
51- * [ nonblocking_write_def.py] ( ./nonblocking_write_def.py )
52- + This example is the same as ` nonblocking_write.py ` expect all nonblocking
53- write requests (calls to ` iput ` and ` bput ` ) are posted in define mode. It
54- creates a netcdf file in CDF-5 format and writes a number of 3D integer
55- non-record variables.
56-
5759* [ create_open.py] ( ./create_open.py )
5860 + This example shows how to use ` File ` class constructor to create a NetCDF
5961 file and to open the file for read only.
0 commit comments