Skip to content

Commit cee0663

Browse files
committed
add note about PR 173
1 parent dc9c3af commit cee0663

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

sneak_peek.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,42 @@ This is essentially a placeholder for the next release note ...
9090
* Issues related to Darshan library:
9191
+ none
9292

93+
* Update of PnetCDF hints
94+
+ There are three ways in PnetCDF for user to set hints to adjust file header
95+
extent size:
96+
1. through setting hints `nc_header_align_size`, `nc_var_align_size`, and
97+
`nc_record_align_size` in in the environment variable `PNETCDF_HINTS`.
98+
2. through arguments `h_minfree`, `v_align`, `v_minfree`, and `r_align` of
99+
`ncmpi__enddef()`.
100+
3. through setting hints `nc_header_align_size`, `nc_var_align_size`, and
101+
`nc_record_align_size` in an MPI info object and passing it to calls
102+
of `ncmpi_create()` and `ncmpi_open()`.
103+
+ Users may set the same hints through one or more of the above methods.
104+
When a hint is set more than one time, PnetCDF implements the following
105+
hint precedence.
106+
* 1st priority: hints set in the environment variable `PNETCDF_HINTS`, e.g.
107+
`PNETCDF_HINTS="nc_var_align_size=1024"`
108+
* 2nd priority: hints used in the arguments of `ncmpi__enddef()`, e.g.
109+
`ncmpi__enddef(..., v_align=1024,...)`
110+
* 3rd priority: hints set in the MPI info object passed into calls of
111+
`ncmpi_create()` and `ncmpi_open()`, e.g.
112+
`MPI_Info_set("nc_var_align_size", "1024");`
113+
+ PnetCDF I/O hint `nc_header_align_size` is essentially the same as hint
114+
`nc_var_align_size`, but its name is closer to the hint's intent, i.e.
115+
adjusting the header to reserve space for its growth in the future when new
116+
data objects are added. Please note when both hints are set, only hint
117+
`nc_var_align_size` will take effect in PnetCDF and `nc_header_align_size`
118+
ignored.
119+
+ When there is no fix-sized variable (i.e. non-record variable) defined,
120+
argument `v_minfree` passsed to `ncmpi__enddef()` is ignored. In this
121+
case, users should set `h_minfree`, if an extra space is desired.
122+
+ When there is no fix-sized variables defined and none of hints
123+
`nc_header_align_size`, `nc_var_align_size`, or argument `v_align` is set,
124+
`nc_record_align_size` or `r_align`, if set, will be used to align the
125+
header extent.
126+
+ For the above update to the hints used for file layout alignment, see
127+
PnetCDF See [PR #173](https://github.com/Parallel-NetCDF/PnetCDF/pull/173).
128+
93129
* Clarifications
94130
+ none
95131

0 commit comments

Comments
 (0)