mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #45] ptxas fails to parse generated PTX for mmq-instance-iq2_xxs.cu on CUDA 13.0 / sm_120 (non-deterministic) #23
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pipeob0 on GitHub (Sep 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/45
ptxasfails to parse the PTX nvcc emits formmq-instance-iq2_xxs.cu, non-deterministicallyBuilding engine 0.1.13 from source on Windows, the new
strata_mmqlibrary fails on one instance:Environment: VS 2022 BuildTools, CUDA 13.0,
-DCMAKE_CUDA_ARCHITECTURES=120,cmake --build build --target strata(Ninja, Release). All othermmq-instance-*.cucompiled; only IQ2_XS hit it.It is not deterministic. Re-running the exact same
cmake --buildwith nothing changed completed the file and linkedstrata.exe. A clean reconfigure also reproduced the failure. So a first-time source build can die on a file that builds fine on the second attempt, which reads like a broken commit rather than a toolchain issue.The name ptxas chokes on (
%uint3iiiiiS8_S8_...) is a generated kernel-parameter symbol, consistent with the__grid_constant__ gemm_paraminstance for IQ2_XS (dot2_argscarryingint8sub-arrays) producing malformed PTX.Workarounds, in case it saves someone the confusion:
cmake --buildagain (it gets past it here);foreach(_t ...)list inCMakeLists.txtif the pack does not need MMQ for it;If you would rather not carry the risk, splitting the instantiation (two kernels per file) or replacing the
__grid_constant__parameter with a by-value struct for that type are the usual fixes. Reported mostly so the symptom is searchable: the failure mode is a parse error in generated PTX, which points at the toolchain, not at the source line it names.@Niko1221 commented on GitHub (Sep 28, 2026):
Thanks for making it searchable. The MMQ instances are llama.cpp's own files compiled unchanged, and a rerun gets past it, so this is CUDA 13.0's ptxas (or something touching the temp file mid-build - antivirus scanners do that on Windows). 0.1.14's setup tries a failed build once more automatically; with a manual build, run
cmake --buildagain. If the retry does not get past it for you, please reopen.