Skip to content

Commit aac622e

Browse files
authored
[ROCm][Build] Add support for AMD Ryzen AI MAX / AI 300 Series (vllm-project#25908)
Signed-off-by: Hosang Yoon <[email protected]>
1 parent 1726e93 commit aac622e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ install(CODE "set(CMAKE_INSTALL_LOCAL_ONLY TRUE)" ALL_COMPONENTS)
3737
set(PYTHON_SUPPORTED_VERSIONS "3.9" "3.10" "3.11" "3.12" "3.13")
3838

3939
# Supported AMD GPU architectures.
40-
set(HIP_SUPPORTED_ARCHS "gfx906;gfx908;gfx90a;gfx942;gfx950;gfx1030;gfx1100;gfx1101;gfx1200;gfx1201")
40+
set(HIP_SUPPORTED_ARCHS "gfx906;gfx908;gfx90a;gfx942;gfx950;gfx1030;gfx1100;gfx1101;gfx1200;gfx1201;gfx1150;gfx1151")
4141

4242
#
4343
# Supported/expected torch versions for CUDA/ROCm.

csrc/rocm/attention.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ using __hip_fp8_e5m2 = __hip_fp8_e5m2_fnuz;
4040
#define __HIP__FP8MFMA__
4141
#endif
4242

43-
#if defined(__HIPCC__) && (defined(__gfx1100__) || defined(__gfx1101__))
43+
#if defined(__HIPCC__) && (defined(__gfx1100__) || defined(__gfx1101__) || \
44+
defined(__gfx1150__) || defined(__gfx1151__))
4445
#define __HIP__GFX11__
4546
#endif
4647

docker/Dockerfile.rocm_base

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ FROM ${BASE_IMAGE} AS base
1515
ENV PATH=/opt/rocm/llvm/bin:/opt/rocm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
1616
ENV ROCM_PATH=/opt/rocm
1717
ENV LD_LIBRARY_PATH=/opt/rocm/lib:/usr/local/lib:
18-
ARG PYTORCH_ROCM_ARCH=gfx90a;gfx942;gfx950;gfx1100;gfx1101;gfx1200;gfx1201
18+
ARG PYTORCH_ROCM_ARCH=gfx90a;gfx942;gfx950;gfx1100;gfx1101;gfx1200;gfx1201;gfx1150;gfx1151
1919
ENV PYTORCH_ROCM_ARCH=${PYTORCH_ROCM_ARCH}
2020
ENV AITER_ROCM_ARCH=gfx942;gfx950
2121

@@ -141,4 +141,4 @@ RUN echo "BASE_IMAGE: ${BASE_IMAGE}" > /app/versions.txt \
141141
&& echo "FA_BRANCH: ${FA_BRANCH}" >> /app/versions.txt \
142142
&& echo "FA_REPO: ${FA_REPO}" >> /app/versions.txt \
143143
&& echo "AITER_BRANCH: ${AITER_BRANCH}" >> /app/versions.txt \
144-
&& echo "AITER_REPO: ${AITER_REPO}" >> /app/versions.txt
144+
&& echo "AITER_REPO: ${AITER_REPO}" >> /app/versions.txt

0 commit comments

Comments
 (0)