Skip to content

Commit 4360e5e

Browse files
authored
Add aiter install to amd docker. (#261)
* add aiter * Update amd-docker.Dockerfile * move aiter install * try sudo * Update amd-docker.Dockerfile * Update amd-docker.Dockerfile * sudo everything * Update amd-docker.Dockerfile * Update amd_workflow.yml * Update amd_workflow.yml * Update amd-docker.Dockerfile * Update amd-docker.Dockerfile * Update amd-docker.Dockerfile * Update amd_workflow.yml * aiter hash
1 parent 4ba10db commit 4360e5e

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

.github/workflows/amd_workflow.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ jobs:
2424
timeout-minutes: 10
2525
steps:
2626
- uses: actions/checkout@v3
27-
- name: Setup Python
28-
uses: actions/setup-python@v5
29-
with:
30-
python-version: '3.10'
31-
3227
- name: Create input files
3328
shell: bash
3429
run: |

docker/amd-docker.Dockerfile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,32 @@ RUN sudo apt-get update -y \
2323
python3.10-venv \
2424
&& sudo rm -rf /var/lib/apt/lists/*
2525

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+
2628
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash && \
2729
sudo apt-get install git-lfs
2830

2931
RUN sudo groupadd -g 109 render
3032

3133
RUN sudo apt update -y \
3234
&& sudo apt install -y "linux-headers-$(uname -r)" "linux-modules-extra-$(uname -r)" \
33-
&& sudo apt install python3-setuptools python3-wheel libpython3.10 \
3435
&& sudo usermod -a -G render,video runner \
3536
&& wget https://repo.radeon.com/amdgpu-install/6.3.1/ubuntu/jammy/amdgpu-install_6.3.60301-1_all.deb \
3637
&& sudo apt install -y ./amdgpu-install_6.3.60301-1_all.deb \
3738
&& sudo apt update -y \
3839
&& sudo apt install -y rocm
3940

40-
RUN pip install --upgrade pip
41+
RUN sudo pip install --upgrade pip
42+
43+
RUN sudo pip install --no-cache-dir pytorch-triton-rocm torch --index-url https://download.pytorch.org/whl/nightly/rocm6.3
4144

42-
RUN pip install --no-cache-dir pytorch-triton-rocm torch --index-url https://download.pytorch.org/whl/nightly/rocm6.3
45+
RUN git clone --recursive https://github.com/ROCm/aiter.git \
46+
&& cd aiter \
47+
&& git checkout 1d88633958236e942cba3c283864282f7af3ebc5 \
48+
&& sudo pip install -r requirements.txt \
49+
&& sudo python3 setup.py develop
4350

44-
RUN pip install \
51+
RUN sudo pip install \
4552
ninja \
4653
numpy \
4754
packaging \

0 commit comments

Comments
 (0)