Skip to content

ci(capi): use TRANSCRIBE_HIP instead of GGML_HIP for ROCm jobs - #3

Merged
cunba-ai merged 1 commit into
mainfrom
ci/rocm-transcribe-hip-flag
Aug 2, 2026
Merged

ci(capi): use TRANSCRIBE_HIP instead of GGML_HIP for ROCm jobs#3
cunba-ai merged 1 commit into
mainfrom
ci/rocm-transcribe-hip-flag

Conversation

@cunba-ai

@cunba-ai cunba-ai commented Aug 2, 2026

Copy link
Copy Markdown
Owner

Upstream PR handy-computer#121 (223c9b0) introduced a TRANSCRIBE_HIP option that wraps GGML_HIP via FORCE, plus a PIC codegen fix for the hipcc/ROCm static-archive link problem that is guarded by TRANSCRIBE_HIP.

Our ROCm CI jobs were still passing -DGGML_HIP=ON directly. That left the new PIC fix disabled — the jobs only kept working because BUILD_SHARED_LIBS=ON happened to turn PIC on via ggml. Switch both the Linux and Windows ROCm-CPU configure steps to -DTRANSCRIBE_HIP=ON so the build goes through the upstream wrapper: GGML_HIP is set correctly and the HIP PIC codegen fix applies.

Verification

Workflow run #30743739902 — all 9 steps passed, including Linux ROCm-CPU (reliable signal) and Windows ROCm-CPU (best-effort).

Inspected the built transcribe.dll (commit 7c598f1):

  • transcribe-link.json reports "backends": ["rocm", "cpu"]
  • 110 public C ABI exports present (transcribe_*)
  • PE sections .hipFatB (4KB) + .hip_fat (~394MB) confirm the HIP fat binary is embedded
  • All 7 GPU targets compiled in: gfx1100/1101/1102/1150/1151/1200/1201
  • ROCm runtime symbols present (amdhip64_7.dll, hipMalloc, hipMemcpy2DAsync, …) and HIP kernels (snake_kernel, tri_kernel, quantize_q8_1) are in the fat binary

Changes

.github/workflows/capi-build.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Upstream PR handy-computer#121 (223c9b0) added a TRANSCRIBE_HIP option that wraps
GGML_HIP via FORCE, plus a PIC fix guarded by TRANSCRIBE_HIP for the
hipcc/ROCm static-archive link problem. Passing -DGGML_HIP=ON directly
left that PIC fix disabled — the ROCm jobs only worked because
BUILD_SHARED_LIBS=ON happened to turn PIC on via ggml.

Switch the Linux and Windows ROCm-CPU configure steps to
-DTRANSCRIBE_HIP=ON so the build goes through the upstream wrapper:
GGML_HIP is set correctly and the HIP PIC codegen fix applies.
@cunba-ai
cunba-ai merged commit 4703e1e into main Aug 2, 2026
17 checks passed
@cunba-ai
cunba-ai deleted the ci/rocm-transcribe-hip-flag branch August 2, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant