Observed since 20 Oct, 19:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
adios4dolfinx
Checkpointing functionality for DOLFINx meshes/functions with ADIOS2
ADIOS4DOLFINx is an extension for DOLFINx to checkpoint meshes, meshtags and functions using ADIOS 2.
The code uses the ADIOS2 Python-wrappers to write DOLFINx objects to file, supporting N-to-M (recoverable) and N-to-N (snapshot) checkpointing. See: Checkpointing in DOLFINx - FEniCS 23 or the examples in the Documentation for more information.
For scalability, the code uses MPI Neighbourhood collectives for communication across processes.
As the usage of high performance computing clusters increases, more and more large-scale, long-running simulations are deployed.
The need for storing intermediate solutions from such simulations are crucial, as the HPC system might crash, or the simulation might crash or exceed the alloted computational budget.
Having a checkpoint of related variables, such as the solutions to partial differential equations (PDEs) is therefore essential.
The adios4dolfinx library extends the DOLFINx computational framework for solving PDEs with checkpointing functionality, such that immediate solutions and mesh information can be stored and re-used in another simulation.
Compatibility with DOLFINx:
The library depends on the Python-interface of DOLFINx and an MPI-build of ADIOS2.
Therefore ADIOS2 should not be install through PYPI/pip, but has to be installed through Conda, Spack or from source.
[!IMPORTANT]
ADIOS2<2.10.2 does not work properly withnumpy>=2.0.0. Everyone is advised to use the newest version of ADIOS2. This is for instance available throughcondaor theghcr.io/fenics/dolfinx/dolfinx:nightlyDocker-image.
ADIOS4DOLFINx is a spack package which can be installed with
spack add py-adios4dolfinx ^py-fenics-dolfinx+petsc4py+slepc4py
spack concretize
spack install
once you have downloaded spack and set up a new environment, as described in Spack: Installation notes. To ensure that the spack packages are up to date, please call
spack repo update builtin
prior to concretizing.
An MPI build of ADIOS2 is installed in the official DOLFINx containers, and thus there are no additional dependencies required to install adios4dolfinx
on top of DOLFINx in these images.
Create a Docker container, named for instance dolfinx-checkpoint.
Use the nightly tag to get the main branch of DOLFINx, or stable to get the latest stable release
docker run -ti -v $(pwd):/root/shared -w /root/shared --name=dolfinx-checkpoint ghcr.io/fenics/dolfinx/dolfinx:nightly
For the latest version compatible with nightly (with the ability to run the test suite), use
python3 -m pip install adios4dolfinx[test]@git+https://github.com/jorgensd/adios4dolfinx@main
If you are using the stable image, you can install adios4dolfinx from PYPI with
python3 -m pip install adios4dolfinx[test]
This docker container can be opened with
docker container start -i dolfinx-checkpoint
at a later instance
[!NOTE]
Conda supports the stable release of DOLFINx, and thus the appropriate version should be installed, see the section above for more details.
Following is a minimal recipe of how to install adios4dolfinx, given that you have conda installed on your system.
conda create -n dolfinx-checkpoint python=3.10
conda activate dolfinx-checkpoint
conda install -c conda-forge adios4dolfinx
[!NOTE] Remember to download the appropriate version of
adios4dolfinxfrom Github adios4dolfinx: Releases
To run the test suite, you should also install ipyparallel, pytest and coverage, which can all be installed with conda
conda install -c conda-forge ipyparallel pytest coverage
adios4dolfinx.read/write_meshadios4dolfinx.read/write_meshtagsadios4dolfinx.read/write_function.XDMFFile. Use adios4dolfinx.write_function_on_input_mesh for this.[!IMPORTANT]
For checkpoints written withwrite_functionto be valid, you first have to store the mesh withwrite_meshto the checkpoint file.
[!IMPORTANT]
A checkpoint file supports multiple functions and multiple time steps, as long as the functions are associated with the same mesh
[!IMPORTANT]
Only one mesh per file is allowed
The repository contains many documented examples of usage, in the docs-folder, including
[!WARNING] If you are using v0.7.2, you are advised to upgrade to v0.7.3, as it contains som crucial fixes for openmpi.
Only checkpoints for Lagrange or DG functions are supported from legacy DOLFIN
.h5 file)See the API for more information.
This library uses pytest for testing.
To execute the tests, one should first install the library and its dependencies, as listed above.
Then, can execute all tests by calling
python3 -m pytest .
Some tests check the capability of reading data created with the legacy version of DOLFIN. To create this dataset, start a docker container with legacy DOLFIN, for instance:
docker run -ti -v $(pwd):/root/shared -w /root/s
hared --rm ghcr.io/scientificcomputing/fenics:2024-02-19
Then, inside this container, call
python3 ./tests/create_legacy_data.py --output-dir=legacy
Some tests check the capability to read data generated by adios4dolfinx<0.7.2.
To generate data for these tests use the following commands:
docker run -ti -v $(pwd):/root/shared -w /root/shared --rm ghcr.io/fenics/dolfinx/dolfinx:v0.7.3
Then, inside the container, call
python3 -m pip install adios4dolfinx==0.7.1
python3 ./tests/create_legacy_checkpoint.py --output-dir=legacy_checkpoint
The long term plan is to get this library merged into DOLFINx (rewritten in C++ with appropriate Python-bindings).
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
fenics-dolfinxEnvironment{
"extras": "",
"marker": null,
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | fenics-dolfinx>=0.11.0 | runtime |
packagingEnvironment{
"extras": "",
"marker": null,
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | packaging | runtime |
pytestEnvironment{
"extras": "",
"marker": "extra == \"test\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | pytest; extra == "test" | runtime |
coverageEnvironment{
"extras": "",
"marker": "extra == \"test\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | coverage; extra == "test" | runtime |
ipyparallelEnvironment{
"extras": "",
"marker": "extra == \"test\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | ipyparallel; extra == "test" | runtime |
pdbppEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | pdbpp; extra == "dev" | runtime |
ipythonEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | ipython; extra == "dev" | runtime |
mypyEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | mypy; extra == "dev" | runtime |
ruffEnvironment{
"extras": "",
"marker": "extra == \"dev\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | ruff; extra == "dev" | runtime |
jupyter-bookEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | jupyter-book<2.0.0; extra == "docs" | runtime |
ipyparallelEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | ipyparallel; extra == "docs" | runtime |
ipywidgetsEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | ipywidgets; extra == "docs" | runtime |
jupytextEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | jupytext; extra == "docs" | runtime |
ipykernelEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | ipykernel<7.0.0; extra == "docs" | runtime |
sphinx-codeautolinkEnvironment{
"extras": "",
"marker": "extra == \"docs\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | sphinx-codeautolink; extra == "docs" | runtime |
adios4dolfinxEnvironment{
"extras": "dev,docs,test",
"marker": "extra == \"all\"",
"requires_python": "",
"evaluation": "NOT_EVALUATED"
} | adios4dolfinx[dev,docs,test]; extra == "all" | runtime |
bdist_wheel · 33.36 KB · Python py3
sdist · 40.25 KB · Python source
Observed since 20 Oct, 19:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:bef8aece80d6440b99506e39cd417fb94fae4127a4addd354a768011e7b3eb2e