Repository navigation
v2.13.0-rc2 #5358
vicentebolea
announced in
Announcements
v2.13.0-rc2
#5358
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What's new in v2.13?
GPU buffers must declare their array layout (Breaking Change)
Since v2.10, ADIOS2 has assumed that any buffer it detected as GPU memory was
column-major. However, GPU kernels and libraries differ in their conventions:
CuPy and PyTorch arrays are row-major, while Kokkos defaults to column-major on
the device. A raw device pointer (from
cudaMalloc,hipMalloc, CuPy,PyTorch, etc.) carries no layout information, so ADIOS2 cannot tell which one
it has, and row-major GPU data was recorded with the wrong shape.
This is a breaking change. ADIOS2 no longer guesses. A
PutorGetof a multidimensional variable whose buffer is a raw GPU pointer now throws
unless the layout has been set first:
var.SetArrayLayout(adios2::ArrayOrdering::RowMajor); // or ColumnMajorThe equivalents are
set_array_layoutin Python andadios2_set_array_layoutin C and Fortran.Kokkos::Viewbuffers taketheir layout from the view, and 1-D variables and host buffers are
unaffected. Code that relied on the old behavior should set
ColumnMajor;code whose GPU data is row-major should set
RowMajor.The layout calls are now available in every ADIOS2 build, with or without GPU
support, so they can be added unconditionally. In earlier releases only the
C++
SetArrayLayoutexisted, and only in builds with Kokkos or GPU support.Readers can tell how an array was written
A BP5 file keeps a single array order, so an array written from buffers in the
other layout (a Fortran array, a
Kokkos::LayoutLeftview in C++, or abuffer declared with
SetArrayLayout) is stored with its dimensionsreversed, and readers see it transposed. BP5 now also records, per variable,
the layout of the buffers each array was written from. Readers can query it
with
GetWriterArrayLayout(writer_array_layoutin Python,adios2_writer_array_layoutin C and Fortran), which returnsRowMajororColumnMajor, orAutofor engines that do not record it. Files writtenthis way remain readable by earlier ADIOS2 versions, which ignore the record.
bpls -landbpls -dmark arrays written from column-major buffers, sinceit lists and dumps them transposed.
BP4/BP5 readers no longer wait on files left open by a killed writer
A BP4 or BP5 writer marks its file as being written until it closes it. A writer that
is killed (for example at the end of a batch job's time limit) leaves that mark
behind, and readers used to wait forever in
BeginStep()for steps that wouldnever come. BP4 and BP5 readers now ignore the mark by default (new parameter
IgnoreActiveFlag, defaulttrue): they read the steps that are present andthen get
EndOfStream. BP5'sOpenTimeoutSecsnow also defaults to 0 inReadmode (as BP4's already did), so opening a file that does not existfails right away instead of waiting for up to an hour.
This changes how a file that is still being written can be followed. Use the
FileStreamengine, which setsIgnoreActiveFlag=falseand waits up to anhour for the file to appear, or set
IgnoreActiveFlag=false(and anOpenTimeoutSecs) on aBP4orBP5reader.adios_reorganizekeeps followingfiles that are being written; it now warns when such a file stops producing
steps, and
--ignore-active-flagmakes it process the steps that are present.Native DAOS engine
The
DAOSengine now keeps all bulk data in DAOS objects, reading and writingthrough the DAOS array API rather than through POSIX files on a dfuse mount.
Earlier releases shipped only a prototype that placed metadata in DAOS and wrote
data as files. Each writer rank writes its own DAOS array, with no cross-rank
aggregation, and issues asynchronous writes as its buffer fills, so transfers
overlap the remaining
Putcalls of the step. Per-rank, per-step metadata isstored in DAOS as well; only the small rank-0 index and format files remain in
the dataset directory. On reads, a selection that does not match the writer's
decomposition fetches only the bytes it needs, batched into a few large DAOS
requests. Select it with
io.SetEngine("daos"), and setDAOS_POOLandDAOS_CONTon every rank. See the DAOS engine documentation for buildrequirements, parameters and current limitations.
Campaign HDF5 reads over HTTPS and S3
The Campaign Reader can now read HDF5 dataset values from HTTPS and S3
objects without downloading the complete object. A read-only HDF5 virtual file
driver maps HDF5 byte requests to ADIOS2 transports, while the HDF5 metadata
surrogate embedded in the campaign remains the primary file for discovery and
small values. Individual HDF5 objects and HDF5 members in indexed TAR objects
are supported, including multistep and hyperslab selections.
Leaner default build for packagers
Several rarely used, unmaintained engines are now off by default:
DataMan,MHS,SSC, andDataSpaces, along with the DDNIMEtransport.
SSCgains a dedicatedADIOS2_USE_SSCoption (previously itwas always built alongside MPI); the others switch from
AUTOtoOFF.ZeroMQ, required only by theDataManengine, is likewise off by default,so a default build no longer probes for or links it. Any of these can still be
enabled explicitly (for example
-DADIOS2_USE_MHS=ON). See the new "Notes forPackagers" section of the README for the recommended feature tiers.
Thread-Safe Get with GetContext
A new
GetContextAPI extends the Selection-basedGet()to supportconcurrent read pipelines on a single engine. Each caller allocates its own
GetContextviaEngine::NewGetContext()and uses it as the firstargument to
Get()andPerformGets(); per-context queues mean twothreads can drive independent
Getbatches against the same open enginewithout racing.
NewGetContext()returnsnullptrwhen the engine does not supportconcurrent contexts; callers feature-probe with the null check. Currently
only the BP5 reader supports them, and only when opened in
Mode::ReadRandomAccesswith a reentrant file transport (POSIX). See theSelection chapter for full details.
Collective reader engine selection
When a reader does not set an engine explicitly, the engine type is
auto-detected from the filesystem. That probing now happens on rank 0 and is
broadcast, instead of every rank issuing its own
stat()calls. If nothingexists at the given location,
IO::Opennow fails collectively with a clearerror (and a hint to call
SetEnginefor a stream that has not been createdyet) rather than selecting BP3 and hanging the non-root MPI ranks.
SST Mercury Data Plane
A new
Mercurydata plane for SST uses the Mercury/margo RPC frameworkto carry data, supporting multiple network backends through a single
implementation:
cxi://for HPE-Cray Slingshot (Frontier, Perlmutter),ofi+tcp/ofi+verbsfor libfabric-based fabrics,bmi+tcp, andna+smfor shared memory. The backend is selected at runtime via theMercuryProtocolengine parameter, with anSST_MERCURY_PROTOCOLenvironment-variable fallback. On Slingshot, the required OFI auth key is
supplied automatically from
SLINGSHOT_VNIS. See the SST enginedocumentation for details.
Derived variables on by default
Derived variables are now built by default (
ADIOS2_USE_Derived_Variabledefaults to
ON; it wasOFFin earlier releases). AStoreDataderivedvariable can also have an operator (for example a compressor) added through the
handle returned by
DefineDerivedVariable, withAddOperationin C++ andadd_operationin Python, the same way as a primary variable. Previously anoperator could be attached only through the XML configuration. Derived
variables are still supported only by the BP5 engine.
Reader-defined derived variables
A read IO can now define a derived expression over a file's variables that were
never marked derived at write time:
IO::DefineReaderDerivedVariable(name, expression),then
InquireVariable/Getafter Open. The reader computesit from the file data. BP5 only; inputs must be same-shaped global arrays.
C++, C, Fortran, Python.
Derived expressions: attribute and scalar inputs
Derived expressions can now use single-value (scalar) variables and numeric
attributes alongside array inputs. A scalar variable broadcasts its per-step
value across the array inputs (
pressure * dt).@namereferences thesingle-element numeric attribute
name; its current value is read at eachevaluation, so modifiable attributes take effect step by step. A binding with
a numeric right-hand side defines a named constant (
c = 2.99792458e8).Variable names containing special characters are referenced through binding
lines (
x = sim/data.Ux) or inline backticks (`sim/Ux` + 1), and/in a formula always means division.JIT fusion for derived expressions
Element-wise derived expressions over float or double arrays (
+,-,*,/, negate,sqrt, including^2by strength reduction) can beJIT-compiled into a single fused vector loop via the bundled dill library's
new 128-bit vector API, typically 3-4x faster than the interpreter and within
a few percent of natively compiled code. Results are bit-identical to the
interpreter. Opt-in for now via the
DerivedFuseenvironment variable;expressions the fuser cannot handle fall back to the interpreter, as do
builds without dill >= 4.0.
Missing min/max reported as N/A
Variables stored without statistics (
StatsLevel=0) now report an unsetrange (
Min() > Max()) instead of a misleading0/0;bplsprintsN/A.BP5 recovery from truncated files
BP5 readers can now recover the steps that are intact in a file truncated by a
crash or a full filesystem. Steps backed by the actual
md.0/mmd.0content are served, and attributes whose format information was lost are
skipped. The reader no longer crashes on malformed metadata framing or index
headers. The new
EOFWaitSecsparameter controls how long a reader waitsbefore concluding that a writer-inactive file has reached its end. Each BP5
file now also carries a unique id in its index header.
BP5 32-bit and 64-bit portability
BP5 metadata now uses fixed-width fields, so files written on a 32-bit platform
can be read on a 64-bit one and vice versa.
FileStream writes BP5
The
FileStreamengine now writes BP5 and detects the BP version of anexisting file from the
md.idxheader without a race. Append is mode-aware,and
Variable::Start()is block-aware for local arrays.BP5 direct reads of N-dimensional selections
The BP5 reader can read N-dimensional selections directly into the application
buffer, and a memory selection is now also honored on the remote read path.
A default selection is resolved at the step actually being read.
XRootD remote backend
The remote server can be reached through an XrdCl HTTP backend. The client
supports a configurable URL path prefix (
serverpathinhosts.yaml),the server answers
HEADrequests with the exact size, and the CampaignReader can read simple files, images, and HDF5 members of TAR objects through
XRootD.
HDF5 files inside TAR archives
HDF5 files stored as members of a TAR file can now be read.
New CAESAR compression operator
A new
CAESARoperator (enable withADIOS2_USE_CAESAR) compresses 3D to5D data, with optional correction methods. The MGARD operator releases its
retained GPU memory (MGARD-X cache) after use, and the new
ADIOS2_USE_MGARD_MDRoption builds MGARD with MDR support. The MGARDoperator also accepts a lossless type parameter.
Encryption operator keys from the environment
The
EncryptionOperatorcan now load its key from environment variables onthe reader side.
SST improvements
SST now delivers attributes reliably, including string array attributes, and
the legacy marshaling code was removed. Several UCX data plane fixes were made
(endpoint creation by lazy writers and rkey lifetime).
Python wheels
Wheels are now built for macOS and for free-threaded Python 3.14 (
cp314t),and a new
adios2-mpipackage provides MPI-enabled Linux wheels. The wheelsnow include libsodium, curl, and SSL support. An Apptainer image of ADIOS2 is
also published.
Build and packaging changes
ADIOS2_USE_Blosc2=ONnow fails if Blosc2 isnot found instead of silently disabling it.
std::filesystemand CLI11 (C++17), and theMinGW-64 specific
getoptcode was removed.FindZeroMQ.cmakewas modernized.bplsand the PythonAvailableVariables()now print minimum andmaximum values of double variables with enough precision (for example
1.302553e+05instead of130255).by their own signedness.
What's Changed
New Contributors
Full Changelog: v2.12.0...v2.13.0-rc2
This discussion was created from the release v2.13.0-rc2.
All reactions