Skip to content

Commit 773dc6e

Browse files
authored
Merge pull request #23 from ROCm/jimwu.enable-hawk-point
ci: add gfx110X (Hawk Point/Phoenix RDNA3) build + release target
2 parents b6a34e2 + b57d714 commit 773dc6e

1 file changed

Lines changed: 23 additions & 7 deletions

File tree

.github/workflows/build-gfx11-rocm.yml

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,22 @@ jobs:
3434
runs-on: ubuntu-24.04
3535
strategy:
3636
matrix:
37-
gfx_target: [gfx1151, gfx1150]
37+
include:
38+
- gfx_target: gfx1151
39+
s3_target: gfx1151
40+
gpu_targets: gfx1151
41+
- gfx_target: gfx1150
42+
s3_target: gfx1150
43+
gpu_targets: gfx1150
44+
- gfx_target: gfx1153
45+
s3_target: gfx1153
46+
gpu_targets: gfx1153
47+
# Hawk Point / Phoenix family (Radeon 760M/780M = gfx1103) ships only
48+
# in the gfx110X-all bundle, which also covers desktop RDNA3
49+
# (RX 7900/7800/7600). Build+release only — no on-hardware test runner.
50+
- gfx_target: gfx110X
51+
s3_target: gfx110X-all
52+
gpu_targets: gfx1100;gfx1101;gfx1102;gfx1103
3853
fail-fast: false
3954
outputs:
4055
rocm_version: ${{ steps.set-outputs.outputs.rocm_version }}
@@ -72,7 +87,7 @@ jobs:
7287
- name: Download and extract ROCm directly to /opt/rocm
7388
run: |
7489
rocm_version="${{ env.ROCM_VERSION }}"
75-
s3_target="${{ matrix.gfx_target }}"
90+
s3_target="${{ matrix.s3_target }}"
7691
7792
if [ "$rocm_version" = "latest" ]; then
7893
echo "Auto-detecting latest ROCm version for target: $s3_target"
@@ -175,7 +190,8 @@ jobs:
175190
- name: Build Llama.cpp + ROCm
176191
run: |
177192
current_target="${{ matrix.gfx_target }}"
178-
echo "Building for target: $current_target"
193+
gpu_targets="${{ matrix.gpu_targets }}"
194+
echo "Building for target: $current_target (GPU_TARGETS=$gpu_targets)"
179195
180196
mkdir build
181197
cd build
@@ -186,7 +202,7 @@ jobs:
186202
-DCMAKE_CXX_FLAGS="-I/opt/rocm/include" \
187203
-DCMAKE_CROSSCOMPILING=ON \
188204
-DCMAKE_BUILD_TYPE=Release \
189-
-DGPU_TARGETS="$current_target" \
205+
-DGPU_TARGETS="$gpu_targets" \
190206
-DBUILD_SHARED_LIBS=ON \
191207
-DLLAMA_BUILD_TESTS=OFF \
192208
-DGGML_HIP=ON \
@@ -494,7 +510,7 @@ jobs:
494510
run: |
495511
TAG="${{ steps.generate-tag.outputs.tag }}"
496512
root="$PWD"
497-
for target in gfx1151 gfx1150; do
513+
for target in gfx1151 gfx1150 gfx1153 gfx110X; do
498514
artifact_dir="./all-artifacts/llama-ubuntu-rocm-${target}-x64"
499515
archive="llama-${TAG}-ubuntu-rocm-${target}-x64"
500516
if [ -d "$artifact_dir" ]; then
@@ -519,10 +535,10 @@ jobs:
519535
--title "$TAG" \
520536
--notes "**Build**: $TAG
521537
**OS**: ubuntu
522-
**GPU Target(s)**: gfx1151, gfx1150
538+
**GPU Target(s)**: gfx1151, gfx1150, gfx1153, gfx110X (gfx1100/1101/1102/1103)
523539
**ROCm Version**: $ROCM_VERSION
524540
**Llama.cpp Commit**: $LLAMACPP_COMMIT_HASH
525541
**Build Date**: $(date -u '+%Y-%m-%d %H:%M:%S UTC')
526542
527-
Prebuilt llama.cpp ROCm binaries for Strix Halo (gfx1151/gfx1150), with ROCm runtime libraries bundled." \
543+
Prebuilt llama.cpp ROCm binaries for the RDNA3.5 gfx115x APUs (gfx1151/gfx1150/gfx1153) and the RDNA3 gfx110X family incl. Hawk Point/Phoenix (Radeon 760M/780M), with ROCm runtime libraries bundled." \
528544
*.tar.gz

0 commit comments

Comments
 (0)