Skip to content

Commit ec9752e

Browse files
committed
Add documentation
1 parent 44ca7d7 commit ec9752e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/source/details/backendconfig.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,17 @@ Explanation of the single keys:
190190

191191
* ``type`` supported ADIOS operator type, e.g. zfp, sz
192192
* ``parameters`` is an associative map of string parameters for the operator (e.g. compression levels)
193+
* ``adios2.dataset.shape`` (advanced): Specify the `dataset shape <https://adios2.readthedocs.io/en/v2.10.0/components/components.html#shapes>`_ for the ADIOS2 variable.
194+
Note that variable shapes will generally imply a different way of interacting with a variable, and some variable shapes (such as *joined arrays*) may not be accessible via this parameter, but via different API calls instead.
195+
This parameter's purpose to select different implementations for the same used API call.
196+
Supported values by this parameter are:
197+
198+
* ``"global_array"`` (default): The variable is a (n-dimensional) array with a globally defined size. Local blocks, subsets of the global region, are written by parallel writers.
199+
* ``"local_value"``: Each parallel writer contributes one single value to the dataset, joined into a 1-dimensional array.
200+
Since there (currently) exists no dedicated API call for this shape in the openPMD-api, this setting is only useful as an optimization since "local value" variables participate in ADIOS2 metadata aggregation.
201+
Can only be applied if the global shape (1-dimensional array the same length as number of parallel instances) and the local blocks (a single data item) are specified correctly.
202+
Use global or joined arrays otherwise.
203+
193204
* ``adios2.use_span_based_put``: The openPMD-api exposes the `span-based Put() API <https://adios2.readthedocs.io/en/latest/components/components.html#put-modes-and-memory-contracts>`_ of ADIOS2 via an overload of ``RecordComponent::storeChunk()``.
194205
This API is incompatible with compression operators as described above.
195206
The openPMD-api will automatically use a fallback implementation for the span-based Put() API if any operator is added to a dataset.

0 commit comments

Comments
 (0)