Skip to content

Commit 02515bb

Browse files
authored
TEST-#7421: Fix unidist with APT-installed MPI (#7423)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 4cae985 commit 02515bb

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,21 @@ jobs:
115115
run: |
116116
MODIN_ENGINE=dask python -c "import modin.pandas as pd; print(pd.DataFrame([1,2,3]))"
117117
MODIN_ENGINE=ray python -c "import modin.pandas as pd; print(pd.DataFrame([1,2,3]))"
118-
# - name: Ensure MPI engine start up
119-
# Install a working MPI implementation beforehand so mpi4py can link to it.
120-
# TODO(https://github.com/modin-project/modin/issues/7421): Find a
121-
# way to make MPI installed via APT work. Then uncomment this section.
122-
# run: |
123-
# sudo apt install libmpich-dev
124-
# python -m pip install -e ".[mpi]"
125-
# MODIN_ENGINE=unidist UNIDIST_BACKEND=mpi mpiexec -n 1 python -c "import modin.pandas as pd; print(pd.DataFrame([1,2,3]))"
126-
# if: matrix.os == 'ubuntu'
118+
- name: Ensure MPI engine start up
119+
# Install a working MPI implementation beforehand so mpi4py can link to it
120+
run: |
121+
sudo apt-get update
122+
sudo apt-get install software-properties-common
123+
124+
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy main universe restricted multiverse"
125+
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu jammy-updates main universe restricted multiverse"
126+
sudo add-apt-repository "deb http://security.ubuntu.com/ubuntu jammy-security main universe restricted multiverse"
127+
sudo apt-get update
128+
129+
sudo apt-get install libmpich-dev=4.0-3 libmpich12=4.0-3 mpich=4.0-3
130+
python -m pip install -e ".[mpi]"
131+
MODIN_ENGINE=unidist UNIDIST_BACKEND=mpi mpiexec -n 1 python -c "import modin.pandas as pd; print(pd.DataFrame([1,2,3]))"
132+
if: matrix.os == 'ubuntu'
127133

128134
test-internals:
129135
needs: [lint-flake8, python-filter]

0 commit comments

Comments
 (0)