Skip to content

Commit

Permalink
workflow: change to openmpi 4.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhai committed Oct 12, 2023
1 parent b4974db commit 430850b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/actions/build-wheel/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ $(cat $(which auditwheel) | head -1 | awk -F'!' '{print $2}') -m pip install aud

if [ "${PARALLEL}" = "mpi" ]; then
yum install -y wget openssh-clients openssh-server
wget https://download.open-mpi.org/release/open-mpi/v4.0/openmpi-4.0.6.tar.gz
tar zxf openmpi-4.0.6.tar.gz
cd openmpi-4.0.6
wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.6.tar.gz
tar zxf openmpi-4.1.6.tar.gz
cd openmpi-4.1.6
./configure --prefix=/usr/local |& tee config.out
make -j 4 |& tee make.out
make install |& tee install.out
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ One can install ``block2`` using ``pip``:

pip install block2

* Hybrid openMP/MPI version (requiring openMPI 4.0.x)
* Hybrid openMP/MPI version (requiring openMPI 4.1.x)

pip install block2-mpi

Expand Down
6 changes: 3 additions & 3 deletions docs/source/user/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ One can install ``block2`` using ``pip``:

pip install block2

* Hybrid openMP/MPI version (requiring openMPI 4.0.x) ::
* Hybrid openMP/MPI version (requiring openMPI 4.1.x) ::

pip install block2-mpi

Expand Down Expand Up @@ -172,7 +172,7 @@ We can create an ``anaconda`` virtual environment (optional): ::

Then make sure that a working ``mpi`` library is in the environment, using, for example: ::

module load openmpi/4.0.4
module load openmpi/4.1.6
module load gcc/9.2.0

Then we should install ``mpi4py`` using this ``mpi`` library via ``--no-binary`` option of ``pip``: ::
Expand All @@ -183,7 +183,7 @@ Sometimes, the above procedure may still give the ``undefined symbol: ompi_mpi_l
Then it is possible that the ``mpi4py`` is still linked to the ``mpich`` (version 3 or lower) library installed in ``anaconda``.
If this is the case, one should first ``conda uninstall mpich`` and then ``python -m pip -v install --no-binary :all: mpi4py``
and if the installation is successful, we can ``ldd $(python -c 'from mpi4py import MPI;print(MPI.__file__)')``
to check the linkage of the ``libmpi.so``. Ideally it should points to the ``openmpi/4.0.4`` library or any other version 4.0 mpi
to check the linkage of the ``libmpi.so``. Ideally it should points to the ``openmpi/4.1.6`` library or any other version 4.1 mpi
library. Alternatively, if you do not want to uninstall the ``mpich`` in ``anaconda``, you may install ``block2`` from source using
the same ``mpich`` library.

Expand Down

0 comments on commit 430850b

Please sign in to comment.