mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3447] [CLOSED] [Engine] CUDA 12.0/12.1: widen the f32 bits by hand in the q36 VDEBUG print #4638
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#4638
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3447
Author: @rodi4eg
Created: 10/20/2026
Status: ❌ Closed
Base:
main← Head:pr/cuda120-host-call📝 Commits (1)
f061dfc[Engine] CUDA 12.0/12.1: widen the f32 bits by hand in the q36 VDEBUG print📊 Changes
1 file changed (+6 additions, -3 deletions)
View changed files
📝
src/qwen35/q36_engine.cu(+6 -3)📄 Description
Problem and result
__half_as_ushortand__float2halfare__device__only, so a host function cannot call them, and CUDA 12.0 and 12.1 reject the call. This site is still in the tree, so the engine does not build with those toolkits:0.1.44.1 fixed the sibling site the same way (
ab638a56: "the PR widens the bits by hand, as the BF16 loader next to it does"). This change does the same for this one.With the change the tree builds with CUDA 12.0 and 12.1.
Related discussion
none
Approach
Three lines in
src/qwen35/q36_engine.cu: read the f32 bits with amemcpyand print them, instead of converting to half on the host.The printed value changes from the half-rounded bits to the f32 bits. It is a debug line (it only runs under
STRATA_Q36_VDEBUG), and it takes no part in any decision the engine makes.Validation
Passed:
Failed:
Not run:
strata_qwen35is CUDA; the q36 path is excluded for HIP gfx906), and there is no ROCm or Intel toolchain on this machine, so the HIP build of this file was not checked.Limits
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.