Repository navigation
pr-set: repin #378 and #264 for HIP 64-bit warp masks (ggml-org#31617) - #382
Merged
Merged
Conversation
Upstream ggml-org#31617 (b12515+) enables HIP's native warp sync builtins, which require a 64-bit lane mask. #378 (fattn-banded.cu) and #264 (mmid.cu) passed a raw 0xffffffff and broke every ROCm leg; both now use the ggml_cuda_shfl helpers, CUDA codegen unchanged.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repins #378 and #264 so the prebuilt's ROCm legs build again. Merge together with #381, which fixes the CUDA and Windows CPU legs. Run 44572603522 (b12532-mix-c38e486) needs both.
The prebuilt is the aged upstream
b####tag plus the pins inscripts/unsloth/pr-set.json, merged in order. Each fix goes into the pin that carries the broken line, and this PR only moves the SHAs.What broke
Upstream ggml-org#31617 ("CUDA/HIP: Refactor the use of _sync warp primitives", first in b12414) replaced the HIP
__shfl_syncmacros, which dropped the mask, with ROCm's native warp sync builtins. Those require a 64-bit lane mask. Any raw__shfl_sync(0xffffffff, ...)now failsamd_warp_sync_functions.h:277(sizeof(MaskT) == 8). The last release, b12347, predates that PR.ggml-cuda/fattn-banded.cu(1 call)ggml_cuda_shfl(score, 0, WARP_SIZE)ggml-cuda/mmid.cu(3 calls)ggml_cuda_shfl/ggml_cuda_shfl_up(what upstream did to its own lines in this file); base retargeted tobase/upstream-08c252e22The CI log only showed
fattn-banded.cu, because ninja stops at the first failed object.mmid.cuwas the second break behind it.Evidence
ggml-hipfor gfx90a (wave64) and gfx1151, b12540 + all 25 pins:fattn-banded.cu.oandmmid.cu.ofail with the CI static_assert.libggml-hip.solinks.cuobjdump -sassoffattn-banded.cu.oandmmid.cu.o(sm_100, CUDA 12.8) is identical for the old and new lines.llama_pinset.py audit: 25/25 clean, feature-checks coverage ok.llama_pinset.py sim --tags window: b12540, b12541, b12542, b12543, b12546, b12547 and b12548 are clean (merge, pin_contract, merge_checks).src/models/inkling2.cpp). This is the known upstream rewrite of model: Add ffn_gate_up_exps scales - NVFP4 #377's line (ggml-org#32429) and is unrelated to this change. b12549 ages in at 23:46Z, so a publish dispatched before then picks b12548 or older.llama_pinset.py verify --cuda(B200), with this pr-set:(*) The first CPU feature-matrix pass on b12548 hit one SIGBUS in
test-llama-archs -a flintwhile four builds were sharing the host. The arch passed 3 of 3 standalone reruns, and a full CPU feature-matrix rerun on the same tree passed 17/17.gate --model inkling, model : Inkling 1 (ggml-org#25731) on b12533 for the prebuilt #378 old head 287b4ff vs new e2a5260): PPL 39.362699 on both, KLD 0, top-1 100%.gate --model inkling2, plain b12540 vs the merged set on b12540): PPL 4.253700 on both, KLD 0, top-1 100%.