upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/scripts/run_gpu_tests.py
diff options
context:
space:
mode:
authorDeSunShine <87091315+DeSunShine@users.noreply.github.com>2026-11-23 22:22:25 +0300
committerDeSunShine <87091315+DeSunShine@users.noreply.github.com>2026-11-24 11:41:59 +0300
commitce75f144c729d22f4b9cae8c310a3bc814a6c56d (patch)
treea0dfdef5b1317e5b13ce679be42c06dc873fe49e /scripts/run_gpu_tests.py
parent1c93c8697078c3ccbd6f374caf5bb3ab0b6bc8e4 (diff)
docs/design.md, rdna2spirv: NVIDIA splits a binary64 Fma only when it folds an all-constant one
Correcting #6635's wording. On an RTX 4090 (621.24) the split 0 of the fma(a, a, c) probe comes from the driver folding an all-constant GLSL Fma while compiling the pipeline: cs_div_fmas_f64's operands are literals. The same values read at run time from user SGPRs (VKC_SGPRS) give the fused 2^-60, as #4536 saw on an RTX 4070. --fma khr is still what makes both single-rounded. Wording only in design.md's floating-point row, cs_div_fmas_f64.asm's header, Gen.emit_fma64's docstring, the runner's split note and test_fma_khr_f64's docstring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'scripts/run_gpu_tests.py')
-rw-r--r--scripts/run_gpu_tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/run_gpu_tests.py b/scripts/run_gpu_tests.py
index a075c876a..ba97bfb40 100644
--- a/scripts/run_gpu_tests.py
+++ b/scripts/run_gpu_tests.py
@@ -1105,7 +1105,7 @@ def run_suite(a, work: str) -> int:
1105 ok = rc == 0 and (words == fused or (not strict and words == split)) 1105 ok = rc == 0 and (words == fused or (not strict and words == split))
1106 detail = " ".join(hex(x) for x in words) if words else msg 1106 detail = " ".join(hex(x) for x in words) if words else msg
1107 if ok and words == split: 1107 if ok and words == split:
1108 detail += " (split: the driver rounds GLSL Fma on doubles twice; --fma khr fixes it)" 1108 detail += " (split: the driver rounded this all-constant GLSL Fma on doubles twice; --fma khr fixes it)"
1109 results.append((name, ok, detail)) 1109 results.append((name, ok, detail))
1110 elif name == "cs_cvt_f32_sat": 1110 elif name == "cs_cvt_f32_sat":
1111 # #300's saturating float -> int conversions: one dispatch per input word in s4 (VKC_SGPRS). 1111 # #300's saturating float -> int conversions: one dispatch per input word in s4 (VKC_SGPRS).