Skip to content

Commit

Permalink
[CI][HIP] Add missing dep for broken amd script. (#13619)
Browse files Browse the repository at this point in the history
Fixes #13612

#13612 was caused by these issues:

ROCm/ROCm#2949
ROCm/HIP#3406

To fix this gcc/g++12 is installed manually and set as the preferred
version.

---------

Signed-off-by: JackAKirk <jack.kirk@codeplay.com>
  • Loading branch information
JackAKirk authored May 9, 2024
1 parent b6a6f53 commit 11ad4ec
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions devops/containers/ubuntu2204_build.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@ COPY scripts/install_build_tools.sh /install.sh
RUN /install.sh

RUN apt install -yqq libnuma-dev wget gnupg2 && \
wget https://repo.radeon.com/amdgpu-install/6.1/ubuntu/jammy/amdgpu-install_6.1.60100-1_all.deb && \
apt-get install -yqq gcc-12 g++-12 libstdc++-12-dev && \
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 100 && \
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100

RUN wget https://repo.radeon.com/amdgpu-install/6.1/ubuntu/jammy/amdgpu-install_6.1.60100-1_all.deb && \
apt install -yqq ./amdgpu-install_6.1.60100-1_all.deb && \
yes | amdgpu-install --usecase=rocmdev && \
amdgpu-install -y --usecase=rocmdev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 11ad4ec

Please sign in to comment.