Skip to content

Commit 07d5c13

Browse files
authored
cmake-3.18 installation on ROCM (take 3)
1 parent 065e4e3 commit 07d5c13

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

manywheel/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ ADD ./common/install_rocm_magma.sh install_rocm_magma.sh
170170
RUN bash ./install_rocm_magma.sh && rm install_rocm_magma.sh
171171
# cmake is already installed inside the rocm base image, but both 2 and 3 exist
172172
# cmake3 is needed for the later MIOpen custom build, so that step is last.
173-
RUN yum install -y python3-pip && \
174-
python3 -mpip install cmake==3.18.4 && \
175-
rm -f /usr/bin/cmake && \
176-
ln -s /usr/local/bin/cmake /usr/bin/cmake && \
177-
ln -s /usr/local/bin/cmake /usr/bin/cmake3
173+
RUN rpm -e cmake && \
174+
pip3 install cmake==3.18.4 && \
175+
ln -sf /usr/local/bin/cmake /usr/bin/cmake && \
176+
ln -sf /usr/local/bin/cmake /usr/bin/cmake3
178177

179178
ADD ./common/install_miopen.sh install_miopen.sh
180179
RUN bash ./install_miopen.sh ${ROCM_VERSION} && rm install_miopen.sh

0 commit comments

Comments
 (0)