Archived
libxe2: the large-register kernels in a device link of their own (xe2_grf256), auto GRF mode off
8fced2e turned on -ze-intel-enable-auto-large-GRF-mode for all of libxe2, which gave the flash
attention kernels the 256 registers their grf_size<256> asks for (AOT never honours the property:
sycl-post-link records it on the image, and only the runtime's JIT reads it). The auto mode also
moved ~25 SIMT kernels that never spilled at 128 to 256 and half their threads: gdn_conv_prep
434 -> 687 us a call at a 2k prefill.
The attention source is now its own shared library, xe2_grf256, linked with
-ze-opt-large-register-file, and the rest of libxe2 is back on the default it was tuned under.
libxe2 needs it from kernels/libxe2.d ($ORIGIN rpath; beside the plugins, not among them, where
the loader would take it for one); both installs carry it. refuse() is exported from libxe2 so the
helper's refusals still reach last_refusal().
rad-kbench replay (libxe2, libref, spechub) 1410/1410, attn --all-rows 227/227, and from an
installed tree. qwen3.8-27b-w4a16 (mtp4fc), fresh prompts, against the auto mode: prefill ~2.1k
tokens 1381 -> 1407 tok/s, ~6.9k 1326 -> 1347; decode 24 corpus prompts 90.4 -> 90.6; greedy 8/8.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c5fe770657
commit
c3145b08e8
3 files changed
+44
-11
No files matched your search
+3
-1
@@ -36,7 +36,9 @@ constexpr int kSub = 16;
|
||||
|
||||
/* Why the last launch on this thread refused, for the engine's error report and the tests. */
|
||||
const char* last_refusal();
|
||||
int refuse(const char* fmt, ...) __attribute__((format(printf, 1, 2)));
|
||||
/* Exported: xe2_grf256 (the large-register kernels, a library of their own; CMakeLists.txt) refuses
|
||||
* through libxe2's, so last_refusal() sees its reasons too. */
|
||||
int refuse(const char* fmt, ...) __attribute__((format(printf, 1, 2), visibility("default")));
|
||||
|
||||
/* A row-major view of an operand read as rows of `n` elements: the base, and the element distance
|
||||
* between consecutive rows. A tensor whose last axis is `n` may have padded rows, provided every
|
||||
|
||||
Reference in new issue
Block a user