Archived
libref takes exp in double and rounds once; on the B65 that is ~3x the rest of an activation. Rounded to bf16, two f32 values a few ulps apart give the same bf16 unless they straddle a rounding tie, so the activation runs with a float exp and repeats libref's double chain only where the f32 result lies within 16 ulps of a tie (near_bf16_tie, xe2_common.h). Probe silu.cpp: 0 of 21M bf16 outputs differ from libref's (the float chain alone: 85), at a third of the time. - gated_quant_fp8: the gate's sigmoid this way. - gdn_conv_prep: the convolution's silu this way. - gdn_gated_rmsnorm: 128-channel rows with a bf16 output take a sub-group a row (8 rows a work-group): the squares added in index order by lane broadcasts (libref's chain), the gate as above. The 128-item work-group a row left 127 items waiting on one's ordered sum. rad-kbench gdn + gated_quant: fixture 165/165, container 440/440, every libxe2 row of these ops at rel_l2 0; op oracle on live operands (tolerance 1e-9): 60/60 agree. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>