File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,10 @@ FROM cpu as rocm
59
59
ARG PYTORCH_ROCM_ARCH
60
60
ENV PYTORCH_ROCM_ARCH ${PYTORCH_ROCM_ARCH}
61
61
ENV MKLROOT /opt/intel
62
+ # Adding ROCM_PATH env var so that LoadHip.cmake (even with logic updated for ROCm6.0)
63
+ # find HIP works for ROCm5.7. Not needed for ROCm6.0 and above.
64
+ # Remove below when ROCm5.7 is not in support matrix anymore.
65
+ ENV ROCM_PATH /opt/rocm
62
66
# No need to install ROCm as base docker image should have full ROCm install
63
67
# ADD ./common/install_rocm.sh install_rocm.sh
64
68
ADD ./common/install_rocm_drm.sh install_rocm_drm.sh
Original file line number Diff line number Diff line change @@ -159,6 +159,10 @@ FROM cpu_final as rocm_final
159
159
ARG ROCM_VERSION=3.7
160
160
ARG PYTORCH_ROCM_ARCH
161
161
ENV PYTORCH_ROCM_ARCH ${PYTORCH_ROCM_ARCH}
162
+ # Adding ROCM_PATH env var so that LoadHip.cmake (even with logic updated for ROCm6.0)
163
+ # find HIP works for ROCm5.7. Not needed for ROCm6.0 and above.
164
+ # Remove below when ROCm5.7 is not in support matrix anymore.
165
+ ENV ROCM_PATH /opt/rocm
162
166
# No need to install ROCm as base docker image should have full ROCm install
163
167
# ADD ./common/install_rocm.sh install_rocm.sh
164
168
# RUN ROCM_VERSION=${ROCM_VERSION} bash ./install_rocm.sh && rm install_rocm.sh
You can’t perform that action at this time.
0 commit comments