jorgensd / adios4dolfinx

Extending DOLFINx with checkpointing functionality
http://jsdokken.com/adios4dolfinx/
MIT License
19 stars 6 forks source link

`v0.7.2` incompatible with openmpi #55

Closed francesco-ballarin closed 7 months ago

francesco-ballarin commented 7 months ago

Easiest way to reproduce: run a docker run -it --rm debian:testing and type

apt update -y
apt install -y fenicsx git python3-adios2-mpi python3-pip python3-pytest
pip show fenics-dolfinx
# prints
# Version: 0.7.3
mpirun --version
# prints
# mpirun (Open MPI) 4.1.6
git clone https://github.com/jorgensd/adios4dolfinx.git
cd adios4dolfinx
git checkout v0.7.2
pip install --break-system-packages .
export ADIOS2_ALWAYS_USE_MPI="1"
python3 -m pytest -svv --maxfail 1 tests
# tests/test_utils.py:51: in read_function
#    adios4dolfinx.read_function(v, filename, engine)
# /usr/local/lib/python3.11/dist-packages/adios4dolfinx/checkpointing.py:337: in read_function
#    inc_cells, inc_perms = send_and_recv_cell_perm(
# /usr/local/lib/python3.11/dist-packages/adios4dolfinx/comm_helpers.py:203: in send_and_recv_cell_perm
#    mesh_to_data.Neighbor_alltoall(out_size, recv_size)
# E   mpi4py.MPI.Exception: MPI_ERR_TRUNCATE: message truncated
francesco-ballarin commented 7 months ago

@drew-parsons we will have to hold off a bit longer to package adios4dolfinx, because buildd will surely fail.

jorgensd commented 7 months ago

v0.7.3 released (and is soon on pypi). It fixed the issues for me at least. Feel free to reopen if you discover any issues @francesco-ballarin.