libxe2: the w2a8 draft head on register int8 DPAS -- 4.2 -> 3.05 ms a round

dpas_s8u8 (xe2_common.h: SPV_INTEL_subgroup_matrix_multiply_accumulate's int8 form, K = 32, A
signed, B unsigned; layout checked in a probe) takes a lane's column of codes as B straight from
registers, so the group sums no longer go through a local-memory tile and two sub-group barriers a
step; the activation is staged once a work-group as A columns, and a step's codes are one 8- or
16-byte load. The group terms are libref's, in order, as before: bit-identical to the
libref-checked sub-group form on 50/50 live calls (a temporary cross-check), fixture 228/228.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1
This commit is contained in:
claudeandClaude Opus 5.5 committed 2026-10-24 15:46:35 +02:00
1 parent 531146b4e8
commit 99fb3108cd
2 files changed
+52 -38

No files matched your search

+7
View File
@@ -24,6 +24,8 @@ typedef int xe2_int8 __attribute__((ext_vector_type(8)));
typedef float xe2_float8 __attribute__((ext_vector_type(8)));
extern SYCL_EXTERNAL xe2_float8 __spirv_SubgroupMatrixMultiplyAccumulateINTEL(int, xe2_short8, xe2_int8,
xe2_float8, int);
extern SYCL_EXTERNAL xe2_int8 __spirv_SubgroupMatrixMultiplyAccumulateINTEL(int, xe2_short8, xe2_int8,
xe2_int8, int);
namespace xe2 {
@@ -78,6 +80,11 @@ int xmx_f16_scaled(sycl::queue& q, const sycl::half* ab, int64_t ars, const sycl
inline xe2_float8 dpas_f16(xe2_short8 a, xe2_int8 b, xe2_float8 c) {
return __spirv_SubgroupMatrixMultiplyAccumulateINTEL(16, a, b, c, 0xC00); /* A, B packed fp16 */
}
/* The int8 form, K = 32, exact in int32: lane l holds A[0..7][2l, 2l + 1] (a pair of int8 a short),
* lane n B's column n as eight dwords of four consecutive k; A signed, B unsigned (0x31). */
inline xe2_int8 dpas_s8u8(xe2_short8 a, xe2_int8 b, xe2_int8 c) {
return __spirv_SubgroupMatrixMultiplyAccumulateINTEL(32, a, b, c, 0x31);
}
/* Runs `submit`, turning a SYCL exception into RAD_E_DEVICE with its message. */
template <typename F>