Commit 003ed0c
fix(mi300x): driverless Triton AOT + HIP exe link for the gfx942 image
Rebuilding the MI300X image surfaced two breakages vs the current tree:
1. Triton 3.7.0's tools/compile.py touches driver.active in two spots that
need a live GPU despite an explicit --target, so the AITER AOT step died
in the no-GPU rootless podman build ("0 active drivers"). Add
patch_triton_driverless_aot.py (drop create_binder + use triton.compiler
.ASTSource directly; import ty_to_cpp from the amd backend module) and a
build-time gate that AOT-compiles for gfx942 with NO GPU and fails the
build if artifacts stop emitting -- the old `--help | grep --target` only
proved the flag existed, which is how the regression shipped.
2. llama-perplexity failed to link (undefined hip* refs, disallowed by
--no-allow-shlib-undefined). Add -DCMAKE_EXE_LINKER_FLAGS so the exe links
the HIP runtime (-L/opt/rocm/lib -lamdhip64), matching the local build.
Verified: gfx942 AOT artifacts emit with no GPU; v2 builds + tags clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 153a7f6 commit 003ed0c
2 files changed
Lines changed: 85 additions & 1 deletion
File tree
- ggml/src/ggml-cuda/aiter-integration/cmake
- scripts/calibration/mi300x
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
53 | 72 | | |
54 | 73 | | |
55 | 74 | | |
| |||
72 | 91 | | |
73 | 92 | | |
74 | 93 | | |
75 | | - | |
| 94 | + | |
| 95 | + | |
76 | 96 | | |
77 | 97 | | |
78 | 98 | | |
| |||
0 commit comments