Skip to content

Commit 72fede0

Browse files
authored
Update docker images (#3430)
1 parent 4aa0c88 commit 72fede0

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

docker/docker.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[DEFAULT]
2-
build_docker_image_pytorch_version = 2.6.0-cuda12.4-cudnn9
2+
build_docker_image_pytorch_version = 2.7.1-cuda12.6-cudnn9
33
build_docker_image_hvd_version = v0.28.1
44
build_docker_image_msdp_version = v0.14.0

docker/hvd/Dockerfile.hvd-apex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ ARG HVD_VERSION
2525

2626
# Build Horovod
2727
RUN apt-get update && apt-get install -y git && \
28-
git clone --recursive --depth 1 --branch ${HVD_VERSION} https://github.com/horovod/horovod.git /horovod && \
29-
conda install -y cmake nccl -c conda-forge && \
28+
conda install -y cmake=3.* nccl -c conda-forge && \
29+
git clone --depth 1 https://github.com/horovod/horovod.git /horovod && \
3030
cd /horovod && \
31+
git fetch --tags && \
32+
git checkout ${HVD_VERSION} && \
33+
git submodule update --init --recursive && \
3134
# temporary -std=c++17 fix
3235
sed -i "s/CMAKE_CXX_STANDARD 14/CMAKE_CXX_STANDARD 17/g" CMakeLists.txt && \
3336
sed -i "s/CMAKE_CXX_STANDARD 14/CMAKE_CXX_STANDARD 17/g" horovod/torch/CMakeLists.txt && \

docker/hvd/Dockerfile.hvd-base

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,18 @@
33

44
ARG PTH_VERSION
55

6-
FROM pytorch/pytorch:${PTH_VERSION}-devel as builder
6+
FROM pytorch/pytorch:${PTH_VERSION}-devel AS builder
77

88
ARG HVD_VERSION
99

1010
# Build Horovod
1111
RUN apt-get update && apt-get install -y git && \
12-
git clone --recursive --depth 1 --branch ${HVD_VERSION} https://github.com/horovod/horovod.git /horovod && \
13-
conda install -y cmake nccl -c conda-forge && \
12+
conda install -y cmake=3.* nccl -c conda-forge && \
13+
git clone --depth 1 https://github.com/horovod/horovod.git /horovod && \
1414
cd /horovod && \
15+
git fetch --tags && \
16+
git checkout ${HVD_VERSION} && \
17+
git submodule update --init --recursive && \
1518
# temporary -std=c++17 fix
1619
sed -i "s/CMAKE_CXX_STANDARD 14/CMAKE_CXX_STANDARD 17/g" CMakeLists.txt && \
1720
sed -i "s/CMAKE_CXX_STANDARD 14/CMAKE_CXX_STANDARD 17/g" horovod/torch/CMakeLists.txt && \

0 commit comments

Comments
 (0)