Archived
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:
1 parent
8addda231b
commit
ea065f596c
11 files changed
+362
-10
No files matched your search
+3
-1
@@ -320,7 +320,8 @@ endif()
|
||||
|
||||
# ---------------------------------------------------------------- the icpx sub-build
|
||||
# sycl/ is its own CMake project, configured with icpx, so -fsycl code never meets this project's
|
||||
# compiler. rad_core links librad_sycl.so (the device backend) as an imported library.
|
||||
# compiler. rad_core links librad_sycl.so (the device backend) as an imported library; the kernel
|
||||
# library libxe2 lands in ${RAD_PLUGIN_OUT}/kernels beside the others.
|
||||
if(RAD_SYCL_FOUND)
|
||||
include(ExternalProject)
|
||||
set(RAD_SYCL_BINARY_DIR ${CMAKE_BINARY_DIR}/sycl)
|
||||
@@ -331,6 +332,7 @@ if(RAD_SYCL_FOUND)
|
||||
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
|
||||
-DRAD_SOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR}
|
||||
-DRAD_SYCL_TARGETS=${RAD_SYCL_TARGETS}
|
||||
-DRAD_PLUGIN_OUT=${RAD_PLUGIN_OUT}
|
||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||
BUILD_ALWAYS ON
|
||||
INSTALL_COMMAND ""
|
||||
|
||||
Reference in new issue
Block a user