upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/queue_proxy_test.cpp
diff options
context:
space:
mode:
authorcrastinator <qvaras@proton.me>2026-11-22 11:57:04 +0200
committercrastinator <qvaras@proton.me>2026-11-22 11:57:04 +0200
commit7c0bb5e17bf51ba39c8e7998d3cfff1b17a8031a (patch)
tree77b1e7c96e4ec7430a543ed81814d241911642ab /runtime/test/queue_proxy_test.cpp
parentc0ac5fd6518b3ba9fa66765b8b07099990dadd74 (diff)
Tools: every f16 input through the f16 transcendentals on the hardware oracle (FUZZ-29)
tools/f16_trans_sweep.py runs all 65,536 f16 bit patterns through v_exp/log/rcp/rsq/sqrt/sin/cos_f16 natively (8 raw kernels of 1,024 threads per op), in wave32 and wave64 and five MODEs (IEEE, f16 denormal mode, f16 round toward zero), reads MODE back first, and compares each word with the exact result correctly rounded to f16 (decimal, 60 digits; sin/cos reduced in turns). It counts bit-exact, 1 ulp, >1 ulp, denormals read or written as zero, signalling NaNs kept or quieted, and the inputs where SPIR-V is undefined, and lists the words of 23 special inputs. On an RX 6700 XT (gfx1031): the five non-trigonometric ops are correctly rounded on every non-NaN input; sin/cos are exact in turns over the whole f16 range (14 and 4 results 1 ulp off, all at |x| <= 1), while the f32 product 6.2831855 * x is >1 ulp off on 16,366 sin and 2,036 cos inputs (#594). denorm_mode_16_64 = 0 flushes denormal operands and results, FP_ROUND's f16 field is ignored, IEEE only quiets signalling NaNs. The results go into docs/design.md (a new f16 transcendentals row) and docs/shader_validation.md.
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions