libxe2: the Intel kernel library's skeleton, and its first op, add

libxe2 is a kernel plugin like any other, built by rad_add_plugin from the icpx sub-build into the
build tree's $RADIANCE_HOME. It declares no schemas (every op it serves is libref's vocabulary), only
device rows, written with designated initialisers. xe2_common.h holds what every kernel needs: the
launch's queue (rad_sycl.h), row views over padded operands, refusals that name the geometry, and
libref's own dtype conversions so results round where the reference's do.

add passes rad-kbench against libref at tolerance zero, on the recorded fixture (30 cases) and on
MiniCPM5-2B's container (20 cases), inside guarded allocations. In a SYCL build the kbench replays
run libxe2 on the card, so they are labelled sycl there, as they are gpu in a HIP build.

scripts/sycl/notify.sh posts to the Discord webhook when the port needs the user.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018EpFgqQidSnH8zo7boVZC1
This commit is contained in:
pascallinxweilerandClaude Opus 5.5 committed 2026-10-23 15:55:39 +02:00
1 parent 370a906c70
commit 41a3c32a65
11 files changed
+362 -10

No files matched your search

+17
View File
@@ -48,3 +48,20 @@ target_compile_options(rad_sycl PRIVATE ${RAD_SYCL_FLAGS} -fvisibility=hidden)
target_link_options(rad_sycl PRIVATE ${RAD_SYCL_FLAGS} "LINKER:-rpath,${RAD_ONEAPI_LIBDIR}"
"LINKER:--no-undefined")
set_target_properties(rad_sycl PROPERTIES OUTPUT_NAME rad_sycl)
# ---------------------------------------------------------------- the kernel library
# libxe2 is a plugin like any other: built by rad_add_plugin against the ABI headers alone, into
# the main build's $RADIANCE_HOME (RAD_PLUGIN_OUT, passed down by the main project). The variables
# cmake/RadAddPlugin.cmake expects describe a build with no HIP; libxe2 adds its SYCL flags itself.
set(RAD_PLUGIN_OUT "${CMAKE_BINARY_DIR}/radiance_home" CACHE PATH "the build tree's $RADIANCE_HOME")
set(RAD_HIP_FOUND OFF)
set(RAD_GPU_TARGETS "")
set(RAD_HIP_RUNTIME "")
# The sub-build installs nothing; the main project installs what it needs from here.
set(RAD_PLUGIN_INSTALL OFF)
add_library(rad_abi INTERFACE)
add_library(radiance::abi ALIAS rad_abi)
target_include_directories(rad_abi INTERFACE ${RAD_SOURCE_DIR}/abi)
include(GNUInstallDirs)
include(${RAD_SOURCE_DIR}/cmake/RadAddPlugin.cmake)
add_subdirectory(${RAD_SOURCE_DIR}/libxe2 ${CMAKE_BINARY_DIR}/libxe2)