Skip to content

Commit 8e204cf

Browse files
authored
ci: Install mpi4py (#1149)
<!-- .github/pull_request_template.md --> ## 📌 Description Install the python packages for CI docker: mpi4py, pynvml. They will be used for the comm ops. ## 🔍 Related Issues #1145, #1134 ## 🚀 Pull Request Checklist Thank you for contributing to FlashInfer! Before we review your pull request, please make sure the following items are complete. ### ✅ Pre-commit Checks - [x] I have installed `pre-commit` by running `pip install pre-commit` (or used your preferred method). - [x] I have installed the hooks with `pre-commit install`. - [x] I have run the hooks manually with `pre-commit run --all-files` and fixed any reported issues. > If you are unsure about how to set up `pre-commit`, see [the pre-commit documentation](https://pre-commit.com/). ## 🧪 Tests - [ ] Tests have been added or updated as needed. - [ ] All tests are passing (`unittest`, etc.). ## Reviewer Notes <!-- Optional: anything you'd like reviewers to focus on, concerns, etc. -->
1 parent ff6808c commit 8e204cf

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docker/Dockerfile.ci_gpu

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ RUN echo "source activate py312" >> ~/.bashrc
1919
ENV PATH="/opt/conda/bin:$PATH"
2020
ENV PATH="/opt/conda/envs/py312/bin:$PATH"
2121

22-
# Install torch
22+
# Install torch and other python packages
2323
COPY install/install_python_packages.sh /install/install_python_packages.sh
2424
RUN bash /install/install_python_packages.sh
25+
26+
# Install mpi4py in the conda environment
27+
RUN conda install -n py312 -y mpi4py

docker/install/install_python_packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ set -e
2020
set -u
2121

2222
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128
23-
pip3 install ninja pytest numpy scipy build
23+
pip3 install ninja pytest numpy scipy build pynvml

0 commit comments

Comments
 (0)