Skip to content

Commit 27f6c7b

Browse files
authored
Building the base images for MI and Navi; Using aiter hotfix (ROCm#461)
1 parent f501118 commit 27f6c7b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile.rocm_base

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ ARG PYTORCH_REPO="https://github.com/pytorch/pytorch.git"
1212
ARG PYTORCH_VISION_REPO="https://github.com/pytorch/vision.git"
1313
ARG FA_BRANCH="1a7f4dfa"
1414
ARG FA_REPO="https://github.com/Dao-AILab/flash-attention.git"
15-
ARG AITER_BRANCH="41297e56"
15+
ARG AITER_BRANCH="c0da3d23"
1616
ARG AITER_REPO="https://github.com/ROCm/aiter.git"
1717

1818
FROM ${BASE_IMAGE} AS base
1919

2020
ENV PATH=/opt/rocm/llvm/bin:$PATH
2121
ENV ROCM_PATH=/opt/rocm
2222
ENV LD_LIBRARY_PATH=/opt/rocm/lib:/usr/local/lib:
23-
ARG PYTORCH_ROCM_ARCH=gfx90a;gfx942
23+
ARG PYTORCH_ROCM_ARCH=gfx90a;gfx942;gfx1100;gfx1101;gfx1200;gfx1201
2424
ENV PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH}
2525

2626
ARG PYTHON_VERSION=3.12
@@ -110,7 +110,7 @@ RUN git clone ${FA_REPO}
110110
RUN cd flash-attention \
111111
&& git checkout ${FA_BRANCH} \
112112
&& git submodule update --init \
113-
&& GPU_ARCHS=${PYTORCH_ROCM_ARCH} python3 setup.py bdist_wheel --dist-dir=dist
113+
&& GPU_ARCHS=$(echo ${PYTORCH_ROCM_ARCH} | sed -e 's/;gfx1[0-9]\{3\}//g') python3 setup.py bdist_wheel --dist-dir=dist
114114
RUN mkdir -p /app/install && cp /app/pytorch/dist/*.whl /app/install \
115115
&& cp /app/vision/dist/*.whl /app/install \
116116
&& cp /app/flash-attention/dist/*.whl /app/install

0 commit comments

Comments
 (0)