From 77fcfadd7ab2d6fb717b20bf14fde6ae61dad3f1 Mon Sep 17 00:00:00 2001 From: Aaron Teo Date: Mon, 3 Aug 2026 02:02:27 +0800 Subject: [PATCH 1/5] ci: prepare for amd rocm ci Signed-off-by: Aaron Teo --- .github/workflows/build-self-hosted.yml | 14 ++++++++++++++ ci/run.sh | 3 +++ 2 files changed, 17 insertions(+) diff --git a/.github/workflows/build-self-hosted.yml b/.github/workflows/build-self-hosted.yml index 441a897e502b..e3536518b6ef 100644 --- a/.github/workflows/build-self-hosted.yml +++ b/.github/workflows/build-self-hosted.yml @@ -71,6 +71,20 @@ jobs: nvidia-smi GG_BUILD_CUDA=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp + gpu-amd: + runs-on: [self-hosted, Linux, AMD] + + steps: + - name: Clone + id: checkout + uses: actions/checkout@v6 + + - name: Test + id: ggml-ci + run: | + rocminfo + GG_BUILD_ROCM=1 GG_BUILD_AMDGPU_TARGETS=gfx1151 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp + gpu-vulkan-nvidia-cm: runs-on: [self-hosted, Linux, NVIDIA] diff --git a/ci/run.sh b/ci/run.sh index e4a34ff0acd8..61db339394a5 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -9,6 +9,9 @@ # # # with CUDA support # GG_BUILD_CUDA=1 bash ./ci/run.sh ./tmp/results ./tmp/mnt +# +# # with ROCm support +# GG_BUILD_ROCM=1 GG_BUILD_AMDGPU_TARGETS=gfx1151 bash ./ci/run.sh ./tmp/results ./tmp/mnt # # # with SYCL support # GG_BUILD_SYCL=1 bash ./ci/run.sh ./tmp/results ./tmp/mnt From a716b1048ddab50e2f874864bd9271ee8296a143 Mon Sep 17 00:00:00 2001 From: Aaron Teo Date: Mon, 3 Aug 2026 02:14:15 +0800 Subject: [PATCH 2/5] ci: fix editorconfig-checker Signed-off-by: Aaron Teo --- ci/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/run.sh b/ci/run.sh index 61db339394a5..242d16786466 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -9,7 +9,7 @@ # # # with CUDA support # GG_BUILD_CUDA=1 bash ./ci/run.sh ./tmp/results ./tmp/mnt -# +# # # with ROCm support # GG_BUILD_ROCM=1 GG_BUILD_AMDGPU_TARGETS=gfx1151 bash ./ci/run.sh ./tmp/results ./tmp/mnt # From 65eee4ffa234ab61e9142be7e14f3194c03a9acd Mon Sep 17 00:00:00 2001 From: Aaron Teo Date: Mon, 3 Aug 2026 02:57:26 +0800 Subject: [PATCH 3/5] ci: fix device not recognised Signed-off-by: Aaron Teo --- ci/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/run.sh b/ci/run.sh index 242d16786466..68a95ec32333 100755 --- a/ci/run.sh +++ b/ci/run.sh @@ -92,7 +92,7 @@ if [ ! -z ${GG_BUILD_CUDA} ]; then fi if [ ! -z ${GG_BUILD_ROCM} ]; then - CMAKE_EXTRA="${CMAKE_EXTRA} -DGGML_HIP=ON" + CMAKE_EXTRA="${CMAKE_EXTRA} -DCMAKE_HIP_COMPILER=$(hipconfig -l)/clang -DGGML_HIP=ON -DGGML_HIP_ROCWMMA_FATTN=ON" if [ -z ${GG_BUILD_AMDGPU_TARGETS} ]; then echo "Missing GG_BUILD_AMDGPU_TARGETS, please set it to your GPU architecture (e.g. gfx90a, gfx1100, etc.)" exit 1 From d14bdc9261fd809bb151361c7e5409bf10b789a6 Mon Sep 17 00:00:00 2001 From: Aaron Teo Date: Mon, 3 Aug 2026 03:50:07 +0800 Subject: [PATCH 4/5] ci: rename gpu-amd to gpu-hip Signed-off-by: Aaron Teo --- .github/workflows/build-self-hosted.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-self-hosted.yml b/.github/workflows/build-self-hosted.yml index e3536518b6ef..b51252486d99 100644 --- a/.github/workflows/build-self-hosted.yml +++ b/.github/workflows/build-self-hosted.yml @@ -71,7 +71,7 @@ jobs: nvidia-smi GG_BUILD_CUDA=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp - gpu-amd: + gpu-hip: runs-on: [self-hosted, Linux, AMD] steps: From 4dc0f887e0e40eb11a640ffcee2c5f52f13ed274 Mon Sep 17 00:00:00 2001 From: Aaron Teo Date: Mon, 3 Aug 2026 04:30:52 +0800 Subject: [PATCH 5/5] ci: gpu-hip to gpu-rocm haha Signed-off-by: Aaron Teo --- .github/workflows/build-self-hosted.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-self-hosted.yml b/.github/workflows/build-self-hosted.yml index b51252486d99..2ab987c8daa2 100644 --- a/.github/workflows/build-self-hosted.yml +++ b/.github/workflows/build-self-hosted.yml @@ -71,7 +71,7 @@ jobs: nvidia-smi GG_BUILD_CUDA=1 bash ./ci/run.sh ~/results/llama.cpp ~/mnt/llama.cpp - gpu-hip: + gpu-rocm: runs-on: [self-hosted, Linux, AMD] steps: