Repository navigation
Conversation
#374 added mmq-pq2-j128.cuh with PTX ld.shared inline asm and the cudaFuncAttributePreferredSharedMemoryCarveout attribute. HIP builds compile every header under ggml-cuda, so the first release run after the merge (40108409720) failed on windows-hip and ubuntu-22-rocm: mmq-pq2-j128.cuh:137:46: error: invalid output constraint '=f' in asm mmq-pq2-j128.cuh:888:49: error: use of undeclared identifier 'cudaFuncAttributePreferredSharedMemoryCarveout' The kernel is only ever dispatched on NVIDIA sm_90+ (mmq.cuh gate), so HIP gets stubs for the three shared-window loads and skips the carveout attribute, which has no mapping in vendors/hip.h. CUDA output unchanged.
Collaborator
Author
|
Superseded by #385, which guards the include instead. |
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.
Release (Prism) run 40108409720 (first dispatch after #374 merged) failed on
windows-hipandubuntu-22-rocm:HIP compiles every header under
ggml-cuda/, and the new J=128 kernel uses PTXld.sharedinline asm plus the carveout attribute, neither of which hipcc accepts. The kernel is only dispatched on NVIDIA sm_90+ (mmq.cuhgate:GGML_CUDA_CC_IS_NVIDIA(cc) && cc >= HOPPER && warp_size == 32), so underGGML_USE_HIPthe three shared-window load helpers become stubs and the carveout attribute is skipped (vendors/hip.hmaps onlycudaFuncAttributeMaxDynamicSharedMemorySize). The CUDA build is unchanged.PR CI on the fork has no HIP job, which is why #374 went green; only the release workflow builds HIP. Verification is therefore the release workflow (or a HIP build) on this branch; I could not build HIP locally.
Also seen in the same run, unrelated:
windows-cuda (13.4, arm64)failed in CMake's CUDA compiler-id step (cudafe++ ... The system cannot find the path specified) with the same nvcc 13.4.46 / MSVC 14.44 that passed on 10-19; the rerun (40110106438) is in progress.https://claude.ai/code/session_01NzdxkdQRP2XfoY2zDeW1yn