This repository was archived by the owner on Jul 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ ENV LD_LIBRARY_PATH=/usr/local/tensorrt/lib:${LD_LIBRARY_PATH}
2929COPY docker/common/install_polygraphy.sh install_polygraphy.sh
3030RUN bash ./install_polygraphy.sh && rm install_polygraphy.sh
3131
32+ # Install mpi4py
33+ COPY docker/common/install_mpi4py.sh install_mpi4py.sh
34+ RUN bash ./install_mpi4py.sh && rm install_mpi4py.sh
35+
3236# Install PyTorch
3337ARG TORCH_INSTALL_TYPE="skip"
3438COPY docker/common/install_pytorch.sh install_pytorch.sh
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ init_ubuntu() {
1818 apt-get remove --purge -y tensorrt*
1919 fi
2020 pip uninstall -y tensorrt
21- pip install mpi4py
2221}
2322
2423install_gcc_centos () {
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -ex
4+
5+ MPI4PY_VERSION=" 3.1.5"
6+ RELEASE_URL=" https://github.com/mpi4py/mpi4py/archive/refs/tags/${MPI4PY_VERSION} .tar.gz"
7+ curl -L ${RELEASE_URL} | tar -zx -C /tmp
8+ # Bypassing compatibility issues with higher versions (>= 69) of setuptools.
9+ sed -i ' s/>= 40\.9\.0/>= 40.9.0, < 69/g' /tmp/mpi4py-${MPI4PY_VERSION} /pyproject.toml
10+ pip install /tmp/mpi4py-${MPI4PY_VERSION}
11+ rm -rf /tmp/mpi4py*
You can’t perform that action at this time.
0 commit comments