Skip to content

Commit 1502865

Browse files
committed
install MPI libs for linux x86
1 parent 8c5f4a8 commit 1502865

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
install_mpi_linux_x86() {
2+
echo "install mpi for x86"
3+
apt-get update
4+
apt-get install -y libmpich-dev libopenmpi-dev
5+
}

.github/scripts/install-torch-tensorrt.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ if [[ $(uname -m) == "aarch64" ]]; then
1212
install_cuda_aarch64
1313
fi
1414

15+
if [[ "$(uname -s)" == "Linux" && "$(uname -m)" == "x86_64" ]]; then
16+
# install MPI for Linux x86_64
17+
source .github/scripts/install-mpi-linux-x86.sh
18+
install_mpi_linux_x86
19+
fi
20+
1521
# Install all the dependencies required for Torch-TensorRT
1622
pip install --pre -r ${PWD}/tests/py/requirements.txt
1723
# dependencies in the tests/py/requirements.txt might install a different version of torch or torchvision

0 commit comments

Comments
 (0)