Skip to content

Commit 9b359e9

Browse files
author
Mark Saroufim
committed
Fix Dockerfile for Ubuntu 24.04 (Noble) base image
- Replace python3.10 packages with python3 equivalents - Use noble ROCm package instead of jammy - Add --break-system-packages for pip on Noble - Remove git-core PPA (not needed on Noble) - Remove linux-headers install (not available during build)
1 parent 75e15c3 commit 9b359e9

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

docker/amd-docker.Dockerfile

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ FROM ghcr.io/actions/actions-runner:latest
33
ENV CXX=clang++
44

55
RUN sudo apt-get update -y \
6-
&& sudo apt-get install -y software-properties-common \
7-
&& sudo add-apt-repository -y ppa:git-core/ppa \
8-
&& sudo apt-get update -y \
96
&& sudo apt-get install -y --no-install-recommends \
7+
software-properties-common \
108
curl \
119
ca-certificates \
1210
git \
@@ -20,46 +18,47 @@ RUN sudo apt-get update -y \
2018
lld \
2119
wget \
2220
psmisc \
23-
python3.10-venv \
21+
python3-venv \
22+
python3-pip \
23+
python3-setuptools \
24+
python3-wheel \
25+
python3-dev \
2426
&& sudo rm -rf /var/lib/apt/lists/*
2527

26-
RUN sudo apt-get update && sudo apt-get install -y python3.10 python3-pip python-is-python3 python3-setuptools python3-wheel libpython3.10
27-
2828
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash && \
2929
sudo apt-get install git-lfs
3030

3131
RUN sudo groupadd -g 109 render
3232

3333
RUN sudo apt update -y \
34-
&& sudo apt install -y "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)" \
3534
&& sudo usermod -a -G render,video runner \
36-
&& wget https://repo.radeon.com/amdgpu-install/7.1/ubuntu/jammy/amdgpu-install_7.1.70100-1_all.deb \
35+
&& wget https://repo.radeon.com/amdgpu-install/7.1/ubuntu/noble/amdgpu-install_7.1.70100-1_all.deb \
3736
&& sudo apt install -y ./amdgpu-install_7.1.70100-1_all.deb \
3837
&& sudo apt update -y \
3938
&& sudo apt install -y rocm
4039

4140
ENV ROCM_PATH=/opt/rocm
4241

43-
RUN sudo pip install --upgrade pip
42+
RUN sudo pip install --break-system-packages --upgrade pip
4443

45-
RUN sudo pip install --no-cache-dir torch==2.10.0+rocm7.1 --index-url https://download.pytorch.org/whl/rocm7.1
44+
RUN sudo pip install --break-system-packages --no-cache-dir torch==2.10.0+rocm7.1 --index-url https://download.pytorch.org/whl/rocm7.1
4645

4746
RUN git clone --recursive https://github.com/ROCm/aiter.git \
4847
&& cd aiter \
4948
&& git checkout f3be04a12a0cfd6b5e2c7a94edc774f1bc24460d \
50-
&& sudo pip install -r requirements.txt \
49+
&& sudo pip install --break-system-packages -r requirements.txt \
5150
&& sudo python3 setup.py develop
5251

5352
RUN sudo mkdir -p /home/runner/aiter/aiter/jit/build \
5453
&& sudo chown -R runner:runner /home/runner/aiter/aiter/jit/build
5554

56-
RUN sudo pip install \
55+
RUN sudo pip install --break-system-packages \
5756
ninja \
5857
numpy \
5958
packaging \
6059
wheel \
6160
tinygrad
6261

63-
RUN sudo pip install git+https://github.com/ROCm/iris.git
62+
RUN sudo pip install --break-system-packages git+https://github.com/ROCm/iris.git
6463

6564
ENV LD_LIBRARY_PATH="/opt/rocm/lib"

0 commit comments

Comments
 (0)