mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3519
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/1540
Author: @nekomario28
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:fix-1474-q2-zero-hip-guard📝 Commits (1)
3e67e7edq_q2_0: keep the Q2_0 signed-zero fix on every HIP arch/version (#1474)📊 Changes
1 file changed (+4 additions, -3 deletions)
View changed files
📝
src/kernels/cuda/iq_kernels.cu(+4 -3)📄 Description
Summary
hip_q2_zerofails on gfx1201 (R9700) with ROCm 7.10: the half path folds a negative scale times +0 to +0, but thedq_q2_0workaround was gated to(__gfx1012__ && HIP_VERSION_MAJOR < 7) || __gfx1151__— the arch list only covers the reports seen so far, and gfx1201 on HIP 7 falls outside it.__HIPCC__. The workaround writes the scale's sign bit for code 1, which is value-identical on targets whose compiler never folds — this matches the reporter's proposed fix.Fixes #1474.
Test plan
amdclang++ -x hip -fsyntax-only --offload-arch=gfx1201onsrc/kernels/cuda/iq_kernels.cuwith the build's compat flags: cleanctest -R hip_q2_zeroon the reporter's R9700 / ROCm 7.10 build: expect PASS (128 signed-zero failures → 0)#if defined(__HIPCC__)only)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.