Skip to content

Commit a780a8b

Browse files
authored
[CI][HIP] Switch to using 6.1 rocm and make it use a fixed version. (#13300)
Previously the version of ROCM used by docker was not fixed and could change when rocm latest version is updated by AMD, which could lead to CI problems. This fixes that and sets the version to 6.1. Only the rocmdev package is installed which is the minimal required package for the compiler. This reduces the memory overhead. --------- Signed-off-by: JackAKirk <[email protected]>
1 parent 4c7baa7 commit a780a8b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

devops/containers/ubuntu2204_build.Dockerfile

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@ RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/
1212
COPY scripts/install_build_tools.sh /install.sh
1313
RUN /install.sh
1414

15-
# Install AMD ROCm
16-
RUN printf 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600\n' | tee /etc/apt/preferences.d/rocm-pin-600
1715
RUN apt install -yqq libnuma-dev wget gnupg2 && \
18-
wget -q -O - https://repo.radeon.com/rocm/rocm.gpg.key | apt-key add - && \
19-
echo 'deb [arch=amd64] https://repo.radeon.com/rocm/apt/debian/ ubuntu main' | tee /etc/apt/sources.list.d/rocm.list && \
20-
apt update && \
21-
apt install -yqq rocm-dev && \
16+
wget https://repo.radeon.com/amdgpu-install/6.1/ubuntu/jammy/amdgpu-install_6.1.60100-1_all.deb && \
17+
apt install -yqq ./amdgpu-install_6.1.60100-1_all.deb && \
18+
yes | amdgpu-install --usecase=rocmdev && \
2219
apt-get clean && \
2320
rm -rf /var/lib/apt/lists/*
2421

0 commit comments

Comments
 (0)