mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2327] [CLOSED] qwen35: widen F16 by hand so upload_f32 builds on CUDA 12.1 #3983
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#3983
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/2327
Author: @nekomario28
Created: 10/13/2026
Status: ❌ Closed
Base:
main← Head:q36-f16-widen-host📝 Commits (1)
c5f8fa5qwen35: widen F16 by hand so upload_f32 builds on CUDA 12.1📊 Changes
1 file changed (+31 additions, -2 deletions)
View changed files
📝
src/qwen35/q36_engine.cu(+31 -2)📄 Description
Fixes Niko1221/Strata#2322.
upload_f32runs on the host and widens F16 with__half2float(__ushort_as_half(...)).__ushort_as_halfis a__device__intrinsic, so on CUDA toolkits that do not have a host form (12.1 and 12.4 per the report)nvccrefuses it:This widens the bits the way the neighbouring
bf16_to_f32already does for BF16, so the host path stops naming a device intrinsic and the file compiles on every toolkit.Testing
scripts/syntax_check.sh src/qwen35/q36_engine.cu(HIP compat shim) passes; it passed before too, so it is a regression guard here, not a reproduction of the CUDA-only error.f16_to_f32matches NumPy'sfloat16->float32bit-for-bit across all 65536 values (0 mismatches; NaN treated as a class). That covers the subnormal branch.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.