File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ ENV PYTORCH_ROCM_ARCH ${PYTORCH_ROCM_ARCH}
62
62
ENV MKLROOT /opt/intel
63
63
ADD ./common/install_rocm.sh install_rocm.sh
64
64
ADD ./common/install_rocm_drm.sh install_rocm_drm.sh
65
- ADD ./common/install_rocm_magma.sh install_rocm_magma.sh
65
+ # ADD ./common/install_rocm_magma.sh install_rocm_magma.sh
66
66
# gfortran and python needed for building magma from source for ROCm
67
67
RUN apt-get update -y && \
68
68
apt-get install gfortran -y && \
@@ -72,12 +72,12 @@ RUN apt-get update -y && \
72
72
FROM rocm as rocm5.3
73
73
RUN ROCM_VERSION=5.3 bash ./install_rocm.sh && rm install_rocm.sh
74
74
RUN bash ./install_rocm_drm.sh && rm install_rocm_drm.sh
75
- RUN bash ./install_rocm_magma.sh && rm install_rocm_magma.sh
75
+ # RUN bash ./install_rocm_magma.sh && rm install_rocm_magma.sh
76
76
77
77
FROM rocm as rocm5.4.2
78
78
RUN ROCM_VERSION=5.4.2 bash ./install_rocm.sh && rm install_rocm.sh
79
79
RUN bash ./install_rocm_drm.sh && rm install_rocm_drm.sh
80
- RUN bash ./install_rocm_magma.sh && rm install_rocm_magma.sh
80
+ # RUN bash ./install_rocm_magma.sh && rm install_rocm_magma.sh
81
81
82
82
FROM ${BASE_TARGET} as final
83
83
# Install LLVM
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ case ${GPU_ARCH_TYPE} in
27
27
rocm)
28
28
BASE_TARGET=rocm${GPU_ARCH_VERSION}
29
29
DOCKER_TAG=rocm${GPU_ARCH_VERSION}
30
- GPU_IMAGE=rocm/dev-ubuntu-20.04:${GPU_ARCH_VERSION}
30
+ GPU_IMAGE=rocm/dev-ubuntu-20.04:${GPU_ARCH_VERSION} -magma
31
31
PYTORCH_ROCM_ARCH=" gfx900;gfx906;gfx908"
32
32
ROCM_REGEX=" ([0-9]+)\.([0-9]+)[\.]?([0-9]*)"
33
33
if [[ $GPU_ARCH_VERSION =~ $ROCM_REGEX ]]; then
Original file line number Diff line number Diff line change @@ -160,15 +160,14 @@ ADD ./common/install_rocm.sh install_rocm.sh
160
160
RUN ROCM_VERSION=${ROCM_VERSION} bash ./install_rocm.sh && rm install_rocm.sh
161
161
ADD ./common/install_rocm_drm.sh install_rocm_drm.sh
162
162
RUN bash ./install_rocm_drm.sh && rm install_rocm_drm.sh
163
+ # cmake is already installed inside the rocm base image, but both 2 and 3 exist
164
+ # cmake3 is needed for pytorch build, and formerly the MIOpen build
165
+ RUN rpm -e cmake && \
166
+ pip3 install cmake==3.18.4 && \
167
+ ln -sf /usr/local/bin/cmake /usr/bin/cmake && \
168
+ ln -sf /usr/local/bin/cmake /usr/bin/cmake3
163
169
# ## The following is now performed beforehand in a new GPU_IMAGE with magma and miopen preinstalled
164
170
# ADD ./common/install_rocm_magma.sh install_rocm_magma.sh
165
171
# RUN bash ./install_rocm_magma.sh && rm install_rocm_magma.sh
166
- # # cmake is already installed inside the rocm base image, but both 2 and 3 exist
167
- # # cmake3 is needed for the later MIOpen custom build, so that step is last.
168
- # RUN rpm -e cmake && \
169
- # pip3 install cmake==3.18.4 && \
170
- # ln -sf /usr/local/bin/cmake /usr/bin/cmake && \
171
- # ln -sf /usr/local/bin/cmake /usr/bin/cmake3
172
- #
173
172
# ADD ./common/install_miopen.sh install_miopen.sh
174
173
# RUN bash ./install_miopen.sh ${ROCM_VERSION} && rm install_miopen.sh
You can’t perform that action at this time.
0 commit comments