-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathamd-docker.Dockerfile
More file actions
61 lines (49 loc) · 1.84 KB
/
amd-docker.Dockerfile
File metadata and controls
61 lines (49 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
FROM ghcr.io/actions/actions-runner:latest
ENV CXX=clang++
RUN sudo apt-get update -y \
&& sudo apt-get install -y software-properties-common \
&& sudo add-apt-repository -y ppa:git-core/ppa \
&& sudo apt-get update -y \
&& sudo apt-get install -y --no-install-recommends \
curl \
ca-certificates \
git \
jq \
sudo \
unzip \
zip \
cmake \
ninja-build \
clang \
lld \
wget \
psmisc \
python3.10-venv \
&& sudo rm -rf /var/lib/apt/lists/*
RUN sudo apt-get update && sudo apt-get install -y python3.10 python3-pip python-is-python3 python3-setuptools python3-wheel libpython3.10
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash && \
sudo apt-get install git-lfs
RUN sudo groupadd -g 109 render
RUN sudo apt update -y \
&& sudo apt install -y "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)" \
&& sudo usermod -a -G render,video runner \
&& wget https://repo.radeon.com/amdgpu-install/6.3.1/ubuntu/jammy/amdgpu-install_6.3.60301-1_all.deb \
&& sudo apt install -y ./amdgpu-install_6.3.60301-1_all.deb \
&& sudo apt update -y \
&& sudo apt install -y rocm
RUN sudo pip install --upgrade pip
RUN sudo pip install --no-cache-dir pytorch-triton-rocm torch --index-url https://download.pytorch.org/whl/nightly/rocm6.3
RUN git clone --recursive https://github.com/ROCm/aiter.git \
&& cd aiter \
&& git checkout 1d88633958236e942cba3c283864282f7af3ebc5 \
&& sudo pip install -r requirements.txt \
&& sudo python3 setup.py develop
RUN sudo mkdir -p /home/runner/aiter/aiter/jit/build \
&& sudo chown -R runner:runner /home/runner/aiter/aiter/jit/build
RUN sudo pip install \
ninja \
numpy \
packaging \
wheel \
tinygrad
RUN sudo pip install git+https://github.com/ROCm/iris.git