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
@@ -372,6 +372,10 @@ if(RAD_SYCL_FOUND)
|
||||
install(FILES ${RAD_SYCL_BINARY_DIR}/librad_sycl.so DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install(FILES ${RAD_PLUGIN_OUT}/kernels/libxe2.so
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/radiance/kernels)
|
||||
# its large-register kernels, a library of their own that libxe2 loads from its own libxe2.d
|
||||
# (libxe2/CMakeLists.txt, xe2_grf256)
|
||||
install(FILES ${RAD_PLUGIN_OUT}/kernels/libxe2.d/libxe2_grf256.so
|
||||
DESTINATION ${CMAKE_INSTALL_DATADIR}/radiance/kernels/libxe2.d)
|
||||
endif()
|
||||
|
||||
add_subdirectory(vendor)
|
||||
|
||||
Reference in new issue
Block a user