File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,8 @@ RUN yum install -y devtoolset-${DEVTOOLSET_VERSION}-gcc devtoolset-${DEVTOOLSET_
143
143
ENV PATH=/opt/rh/devtoolset-${DEVTOOLSET_VERSION}/root/usr/bin:$PATH
144
144
ENV LD_LIBRARY_PATH=/opt/rh/devtoolset-${DEVTOOLSET_VERSION}/root/usr/lib64:/opt/rh/devtoolset-${DEVTOOLSET_VERSION}/root/usr/lib:$LD_LIBRARY_PATH
145
145
146
+ # cmake is already installed inside the rocm base image, so remove if present
147
+ RUN rpm -e cmake || true
146
148
# cmake-3.18.4 from pip
147
149
RUN yum install -y python3-pip && \
148
150
python3 -mpip install cmake==3.18.4 && \
@@ -157,7 +159,7 @@ RUN rm -rf /usr/local/cuda-${BASE_CUDA_VERSION}
157
159
COPY --from=cuda /usr/local/cuda-${BASE_CUDA_VERSION} /usr/local/cuda-${BASE_CUDA_VERSION}
158
160
COPY --from=magma /usr/local/cuda-${BASE_CUDA_VERSION} /usr/local/cuda-${BASE_CUDA_VERSION}
159
161
160
- FROM common as rocm_final
162
+ FROM cpu_final as rocm_final
161
163
ARG ROCM_VERSION=3.7
162
164
ARG PYTORCH_ROCM_ARCH
163
165
ENV PYTORCH_ROCM_ARCH ${PYTORCH_ROCM_ARCH}
@@ -168,3 +170,5 @@ ADD ./common/install_rocm_drm.sh install_rocm_drm.sh
168
170
RUN bash ./install_rocm_drm.sh && rm install_rocm_drm.sh
169
171
ADD ./common/install_rocm_magma.sh install_rocm_magma.sh
170
172
RUN bash ./install_rocm_magma.sh && rm install_rocm_magma.sh
173
+ # cmake3 is needed for the MIOpen build
174
+ RUN ln -sf /usr/local/bin/cmake /usr/bin/cmake3
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ case ${GPU_ARCH_TYPE} in
56
56
if [[ $ROCM_VERSION_INT -ge 40300 ]]; then
57
57
PYTORCH_ROCM_ARCH=" ${PYTORCH_ROCM_ARCH} ;gfx90a;gfx1030"
58
58
fi
59
- DOCKER_GPU_BUILD_ARG=" --build-arg ROCM_VERSION=${GPU_ARCH_VERSION} --build-arg PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH} "
59
+ DOCKER_GPU_BUILD_ARG=" --build-arg ROCM_VERSION=${GPU_ARCH_VERSION} --build-arg PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH} --build-arg DEVTOOLSET_VERSION=9 "
60
60
;;
61
61
* )
62
62
echo " ERROR: Unrecognized GPU_ARCH_TYPE: ${GPU_ARCH_TYPE} "
You can’t perform that action at this time.
0 commit comments